juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r1241100 [38/41] - in /juddi/scout/site: ./ apidocs/ apidocs/org/apache/ws/scout/model/uddi/v2/ apidocs/org/apache/ws/scout/model/uddi/v2/class-use/ apidocs/org/apache/ws/scout/registry/ apidocs/org/apache/ws/scout/registry/class-use/ apido...
Date Mon, 06 Feb 2012 18:11:18 GMT
Modified: juddi/scout/site/xref/org/apache/ws/scout/util/ScoutJaxrUddiV3Helper.html
URL: http://svn.apache.org/viewvc/juddi/scout/site/xref/org/apache/ws/scout/util/ScoutJaxrUddiV3Helper.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- juddi/scout/site/xref/org/apache/ws/scout/util/ScoutJaxrUddiV3Helper.html (original)
+++ juddi/scout/site/xref/org/apache/ws/scout/util/ScoutJaxrUddiV3Helper.html Mon Feb  6 18:10:50 2012
@@ -91,49 +91,49 @@
 <a name="81" href="#81">81</a>  		AddressLine stnumAL = objectFactory.createAddressLine();
 <a name="82" href="#82">82</a>          stnumAL.setKeyName(<span class="jxr_string">"STREET_NUMBER"</span>);
 <a name="83" href="#83">83</a>  		<strong class="jxr_keyword">if</strong> (stnum != <strong class="jxr_keyword">null</strong>) {
-<a name="84" href="#84">84</a>  			stnumAL.setKeyValue(stnum);
+<a name="84" href="#84">84</a>  			stnumAL.setKeyValue(<span class="jxr_string">"STREET_NUMBER"</span>);
 <a name="85" href="#85">85</a>  			stnumAL.setValue(stnum);
 <a name="86" href="#86">86</a>  		}
 <a name="87" href="#87">87</a>  
 <a name="88" href="#88">88</a>  		AddressLine stAL = objectFactory.createAddressLine();
 <a name="89" href="#89">89</a>          stAL.setKeyName(<span class="jxr_string">"STREET"</span>);
 <a name="90" href="#90">90</a>  		<strong class="jxr_keyword">if</strong> (st != <strong class="jxr_keyword">null</strong>) {
-<a name="91" href="#91">91</a>  			stAL.setKeyValue(st);
+<a name="91" href="#91">91</a>  			stAL.setKeyValue(<span class="jxr_string">"STREET"</span>);
 <a name="92" href="#92">92</a>  			stAL.setValue(st);
 <a name="93" href="#93">93</a>  		}
 <a name="94" href="#94">94</a>  
 <a name="95" href="#95">95</a>  		AddressLine cityAL = objectFactory.createAddressLine();
 <a name="96" href="#96">96</a>          cityAL.setKeyName(<span class="jxr_string">"CITY"</span>);
 <a name="97" href="#97">97</a>  		<strong class="jxr_keyword">if</strong> (city != <strong class="jxr_keyword">null</strong>) {
-<a name="98" href="#98">98</a>  			cityAL.setKeyValue(city);
+<a name="98" href="#98">98</a>  			cityAL.setKeyValue(<span class="jxr_string">"CITY"</span>);
 <a name="99" href="#99">99</a>  			cityAL.setValue(city);
 <a name="100" href="#100">100</a> 		}
 <a name="101" href="#101">101</a> 
 <a name="102" href="#102">102</a> 		AddressLine countryAL = objectFactory.createAddressLine();
 <a name="103" href="#103">103</a>         countryAL.setKeyName(<span class="jxr_string">"COUNTRY"</span>);
 <a name="104" href="#104">104</a> 		<strong class="jxr_keyword">if</strong> (country != <strong class="jxr_keyword">null</strong>) {
-<a name="105" href="#105">105</a> 			countryAL.setKeyValue(country);
+<a name="105" href="#105">105</a> 			countryAL.setKeyValue(<span class="jxr_string">"COUNTRY"</span>);
 <a name="106" href="#106">106</a> 			countryAL.setValue(country);
 <a name="107" href="#107">107</a> 		}
 <a name="108" href="#108">108</a> 
 <a name="109" href="#109">109</a> 		AddressLine codeAL = objectFactory.createAddressLine();
 <a name="110" href="#110">110</a>         codeAL.setKeyName(<span class="jxr_string">"POSTALCODE"</span>);
 <a name="111" href="#111">111</a> 		<strong class="jxr_keyword">if</strong> (code != <strong class="jxr_keyword">null</strong>) {
-<a name="112" href="#112">112</a> 			codeAL.setKeyValue(code);
+<a name="112" href="#112">112</a> 			codeAL.setKeyValue(<span class="jxr_string">"POSTALCODE"</span>);
 <a name="113" href="#113">113</a> 			codeAL.setValue(code);
 <a name="114" href="#114">114</a> 		}
 <a name="115" href="#115">115</a> 
 <a name="116" href="#116">116</a> 		AddressLine stateAL = objectFactory.createAddressLine();
 <a name="117" href="#117">117</a>         stateAL.setKeyName(<span class="jxr_string">"STATE"</span>);
 <a name="118" href="#118">118</a> 		<strong class="jxr_keyword">if</strong> (state != <strong class="jxr_keyword">null</strong>) {
-<a name="119" href="#119">119</a> 			stateAL.setKeyValue(state);
+<a name="119" href="#119">119</a> 			stateAL.setKeyValue(<span class="jxr_string">"STATE"</span>);
 <a name="120" href="#120">120</a> 			stateAL.setValue(state);
 <a name="121" href="#121">121</a> 		}
 <a name="122" href="#122">122</a> 		
 <a name="123" href="#123">123</a>         AddressLine typeAL = objectFactory.createAddressLine();
 <a name="124" href="#124">124</a>         typeAL.setKeyName(<span class="jxr_string">"TYPE"</span>);
 <a name="125" href="#125">125</a>         <strong class="jxr_keyword">if</strong> (type != <strong class="jxr_keyword">null</strong>) {
-<a name="126" href="#126">126</a>                 typeAL.setKeyValue(type);
+<a name="126" href="#126">126</a>                 typeAL.setKeyValue(<span class="jxr_string">"TYPE"</span>);
 <a name="127" href="#127">127</a>                 typeAL.setValue(type);
 <a name="128" href="#128">128</a>         }
 <a name="129" href="#129">129</a> 
@@ -237,723 +237,731 @@
 <a name="227" href="#227">227</a>                                     ourl.setValue(link.getExternalURI());
 <a name="228" href="#228">228</a>                                     overviewDoc.setOverviewURL(ourl);
 <a name="229" href="#229">229</a>                                 }
-<a name="230" href="#230">230</a>                             } 
-<a name="231" href="#231">231</a>                         }
-<a name="232" href="#232">232</a> 					}
-<a name="233" href="#233">233</a>               }
-<a name="234" href="#234">234</a>             }
-<a name="235" href="#235">235</a> 			<strong class="jxr_keyword">if</strong> (tid.getTModelInstanceInfo().size() != 0) {
-<a name="236" href="#236">236</a> 				bt.setTModelInstanceDetails(tid);
-<a name="237" href="#237">237</a> 			}
-<a name="238" href="#238">238</a> 			log.debug(<span class="jxr_string">"BindingTemplate="</span> + bt.toString());
-<a name="239" href="#239">239</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="240" href="#240">240</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="241" href="#241">241</a>         }
-<a name="242" href="#242">242</a>         <strong class="jxr_keyword">return</strong> bt;
-<a name="243" href="#243">243</a>     }
-<a name="244" href="#244">244</a> 
-<a name="245" href="#245">245</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PublisherAssertion getPubAssertionFromJAXRAssociation(
-<a name="246" href="#246">246</a> 			Association association) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="247" href="#247">247</a> 		PublisherAssertion pa = objectFactory.createPublisherAssertion();
-<a name="248" href="#248">248</a> 		<strong class="jxr_keyword">try</strong> {
-<a name="249" href="#249">249</a> 			<strong class="jxr_keyword">if</strong> (association.getSourceObject().getKey() != <strong class="jxr_keyword">null</strong> &amp;&amp; 
-<a name="250" href="#250">250</a> 				association.getSourceObject().getKey().getId() != <strong class="jxr_keyword">null</strong>) {
-<a name="251" href="#251">251</a>             pa.setFromKey(association.getSourceObject().getKey().getId());
-<a name="252" href="#252">252</a> 			}
-<a name="253" href="#253">253</a> 			
-<a name="254" href="#254">254</a> 			<strong class="jxr_keyword">if</strong> (association.getTargetObject().getKey() != <strong class="jxr_keyword">null</strong> &amp;&amp;
-<a name="255" href="#255">255</a> 				association.getTargetObject().getKey().getId() != <strong class="jxr_keyword">null</strong>) {
-<a name="256" href="#256">256</a>             pa.setToKey(association.getTargetObject().getKey().getId());
-<a name="257" href="#257">257</a> 			}
-<a name="258" href="#258">258</a>             Concept c = association.getAssociationType();
-<a name="259" href="#259">259</a>             String v = c.getValue();
-<a name="260" href="#260">260</a> 			KeyedReference kr = objectFactory.createKeyedReference();
-<a name="261" href="#261">261</a>             Key key = c.getKey();
-<a name="262" href="#262">262</a> 			<strong class="jxr_keyword">if</strong> (key == <strong class="jxr_keyword">null</strong>) {
-<a name="263" href="#263">263</a> 				<em class="jxr_comment">// TODO:Need to check this. If the concept is a predefined</em>
-<a name="264" href="#264">264</a> 				<em class="jxr_comment">// enumeration, the key can be the parent classification scheme</em>
-<a name="265" href="#265">265</a>                 key = c.getClassificationScheme().getKey();
-<a name="266" href="#266">266</a>             }
-<a name="267" href="#267">267</a> 			<strong class="jxr_keyword">if</strong> (key != <strong class="jxr_keyword">null</strong> &amp;&amp; key.getId() != <strong class="jxr_keyword">null</strong>) {
-<a name="268" href="#268">268</a> 				kr.setTModelKey(key.getId());
-<a name="269" href="#269">269</a> 			} 
-<a name="270" href="#270">270</a>             kr.setKeyName(<span class="jxr_string">"Concept"</span>);
-<a name="271" href="#271">271</a> 
-<a name="272" href="#272">272</a> 			<strong class="jxr_keyword">if</strong> (v != <strong class="jxr_keyword">null</strong>) {
-<a name="273" href="#273">273</a> 				kr.setKeyValue(v);
-<a name="274" href="#274">274</a> 			}
-<a name="275" href="#275">275</a> 
-<a name="276" href="#276">276</a>             pa.setKeyedReference(kr);
-<a name="277" href="#277">277</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="278" href="#278">278</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="279" href="#279">279</a>         }
-<a name="280" href="#280">280</a>         <strong class="jxr_keyword">return</strong> pa;
-<a name="281" href="#281">281</a>     }
-<a name="282" href="#282">282</a> 
-<a name="283" href="#283">283</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PublisherAssertion getPubAssertionFromJAXRAssociationKey(
-<a name="284" href="#284">284</a> 			String key) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="285" href="#285">285</a> 		PublisherAssertion pa = objectFactory.createPublisherAssertion();
-<a name="286" href="#286">286</a> 		<strong class="jxr_keyword">try</strong> {
-<a name="287" href="#287">287</a> 			StringTokenizer token = <strong class="jxr_keyword">new</strong> StringTokenizer(key, <span class="jxr_string">":"</span>);
-<a name="288" href="#288">288</a> 			<strong class="jxr_keyword">if</strong> (token.hasMoreTokens()) {
-<a name="289" href="#289">289</a>                pa.setFromKey(getToken(token.nextToken()));
-<a name="290" href="#290">290</a>                pa.setToKey(getToken(token.nextToken()));
-<a name="291" href="#291">291</a> 				KeyedReference kr = objectFactory.createKeyedReference();
-<a name="292" href="#292">292</a> 				<em class="jxr_comment">// Sometimes the Key is UUID:something</em>
-<a name="293" href="#293">293</a>                String str = getToken(token.nextToken());
-<a name="294" href="#294">294</a> 				<strong class="jxr_keyword">if</strong> (<span class="jxr_string">"UUID"</span>.equals(str))
-<a name="295" href="#295">295</a> 					str += <span class="jxr_string">":"</span> + getToken(token.nextToken());
-<a name="296" href="#296">296</a>                kr.setTModelKey(str);
-<a name="297" href="#297">297</a>                kr.setKeyName(getToken(token.nextToken()));
-<a name="298" href="#298">298</a>                kr.setKeyValue(getToken(token.nextToken()));
-<a name="299" href="#299">299</a>                pa.setKeyedReference(kr);
-<a name="300" href="#300">300</a>             }
-<a name="301" href="#301">301</a> 
-<a name="302" href="#302">302</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="303" href="#303">303</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="304" href="#304">304</a>         }
-<a name="305" href="#305">305</a>         <strong class="jxr_keyword">return</strong> pa;
-<a name="306" href="#306">306</a>     }
-<a name="307" href="#307">307</a> 
-<a name="308" href="#308">308</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> BusinessService getBusinessServiceFromJAXRService(
-<a name="309" href="#309">309</a> 			Service service) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="310" href="#310">310</a> 		BusinessService bs = objectFactory.createBusinessService();
-<a name="311" href="#311">311</a> 		<strong class="jxr_keyword">try</strong> {
-<a name="312" href="#312">312</a> 			InternationalString iname = service.getName();
-<a name="313" href="#313">313</a> 						
-<a name="314" href="#314">314</a> 			addNames(bs.getName(), iname);
-<a name="315" href="#315">315</a> 	         
-<a name="316" href="#316">316</a>             InternationalString idesc = service.getDescription();
-<a name="317" href="#317">317</a>     
-<a name="318" href="#318">318</a>            addDescriptions(bs.getDescription(), idesc);
-<a name="319" href="#319">319</a> 
-<a name="320" href="#320">320</a>             Organization o = service.getProvidingOrganization();
-<a name="321" href="#321">321</a> 
-<a name="322" href="#322">322</a>             <em class="jxr_comment">/*</em>
-<a name="323" href="#323">323</a> <em class="jxr_comment">             * there may not always be a key...</em>
-<a name="324" href="#324">324</a> <em class="jxr_comment">             */</em>
-<a name="325" href="#325">325</a>             <strong class="jxr_keyword">if</strong> (o != <strong class="jxr_keyword">null</strong>) {
-<a name="326" href="#326">326</a>                 Key k = o.getKey();
+<a name="230" href="#230">230</a>                                 <strong class="jxr_keyword">if</strong> (slink.getUsageParameters() != <strong class="jxr_keyword">null</strong>) {
+<a name="231" href="#231">231</a>                                     StringBuffer buffer = <strong class="jxr_keyword">new</strong> StringBuffer();
+<a name="232" href="#232">232</a>                                     <strong class="jxr_keyword">for</strong> (Object o : slink.getUsageParameters()) {
+<a name="233" href="#233">233</a>                                         String s = (String) o;
+<a name="234" href="#234">234</a>                                         buffer.append(s + <span class="jxr_string">" "</span>);
+<a name="235" href="#235">235</a>                                     }
+<a name="236" href="#236">236</a>                                     ids.setInstanceParms(buffer.toString().trim());
+<a name="237" href="#237">237</a>                                 }
+<a name="238" href="#238">238</a>                             } 
+<a name="239" href="#239">239</a>                         }
+<a name="240" href="#240">240</a> 					}
+<a name="241" href="#241">241</a>               }
+<a name="242" href="#242">242</a>             }
+<a name="243" href="#243">243</a> 			<strong class="jxr_keyword">if</strong> (tid.getTModelInstanceInfo().size() != 0) {
+<a name="244" href="#244">244</a> 				bt.setTModelInstanceDetails(tid);
+<a name="245" href="#245">245</a> 			}
+<a name="246" href="#246">246</a> 			log.debug(<span class="jxr_string">"BindingTemplate="</span> + bt.toString());
+<a name="247" href="#247">247</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
+<a name="248" href="#248">248</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
+<a name="249" href="#249">249</a>         }
+<a name="250" href="#250">250</a>         <strong class="jxr_keyword">return</strong> bt;
+<a name="251" href="#251">251</a>     }
+<a name="252" href="#252">252</a> 
+<a name="253" href="#253">253</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PublisherAssertion getPubAssertionFromJAXRAssociation(
+<a name="254" href="#254">254</a> 			Association association) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="255" href="#255">255</a> 		PublisherAssertion pa = objectFactory.createPublisherAssertion();
+<a name="256" href="#256">256</a> 		<strong class="jxr_keyword">try</strong> {
+<a name="257" href="#257">257</a> 			<strong class="jxr_keyword">if</strong> (association.getSourceObject().getKey() != <strong class="jxr_keyword">null</strong> &amp;&amp; 
+<a name="258" href="#258">258</a> 				association.getSourceObject().getKey().getId() != <strong class="jxr_keyword">null</strong>) {
+<a name="259" href="#259">259</a>             pa.setFromKey(association.getSourceObject().getKey().getId());
+<a name="260" href="#260">260</a> 			}
+<a name="261" href="#261">261</a> 			
+<a name="262" href="#262">262</a> 			<strong class="jxr_keyword">if</strong> (association.getTargetObject().getKey() != <strong class="jxr_keyword">null</strong> &amp;&amp;
+<a name="263" href="#263">263</a> 				association.getTargetObject().getKey().getId() != <strong class="jxr_keyword">null</strong>) {
+<a name="264" href="#264">264</a>             pa.setToKey(association.getTargetObject().getKey().getId());
+<a name="265" href="#265">265</a> 			}
+<a name="266" href="#266">266</a>             Concept c = association.getAssociationType();
+<a name="267" href="#267">267</a>             String v = c.getValue();
+<a name="268" href="#268">268</a> 			KeyedReference kr = objectFactory.createKeyedReference();
+<a name="269" href="#269">269</a>             Key key = c.getKey();
+<a name="270" href="#270">270</a> 			<strong class="jxr_keyword">if</strong> (key == <strong class="jxr_keyword">null</strong>) {
+<a name="271" href="#271">271</a> 				<em class="jxr_comment">// TODO:Need to check this. If the concept is a predefined</em>
+<a name="272" href="#272">272</a> 				<em class="jxr_comment">// enumeration, the key can be the parent classification scheme</em>
+<a name="273" href="#273">273</a>                 key = c.getClassificationScheme().getKey();
+<a name="274" href="#274">274</a>             }
+<a name="275" href="#275">275</a> 			<strong class="jxr_keyword">if</strong> (key != <strong class="jxr_keyword">null</strong> &amp;&amp; key.getId() != <strong class="jxr_keyword">null</strong>) {
+<a name="276" href="#276">276</a> 				kr.setTModelKey(key.getId());
+<a name="277" href="#277">277</a> 			} 
+<a name="278" href="#278">278</a>             kr.setKeyName(<span class="jxr_string">"Concept"</span>);
+<a name="279" href="#279">279</a> 
+<a name="280" href="#280">280</a> 			<strong class="jxr_keyword">if</strong> (v != <strong class="jxr_keyword">null</strong>) {
+<a name="281" href="#281">281</a> 				kr.setKeyValue(v);
+<a name="282" href="#282">282</a> 			}
+<a name="283" href="#283">283</a> 
+<a name="284" href="#284">284</a>             pa.setKeyedReference(kr);
+<a name="285" href="#285">285</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
+<a name="286" href="#286">286</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
+<a name="287" href="#287">287</a>         }
+<a name="288" href="#288">288</a>         <strong class="jxr_keyword">return</strong> pa;
+<a name="289" href="#289">289</a>     }
+<a name="290" href="#290">290</a> 
+<a name="291" href="#291">291</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PublisherAssertion getPubAssertionFromJAXRAssociationKey(
+<a name="292" href="#292">292</a> 			String key) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="293" href="#293">293</a> 		PublisherAssertion pa = objectFactory.createPublisherAssertion();
+<a name="294" href="#294">294</a> 		<strong class="jxr_keyword">try</strong> {
+<a name="295" href="#295">295</a> 			StringTokenizer token = <strong class="jxr_keyword">new</strong> StringTokenizer(key, <span class="jxr_string">"|"</span>);
+<a name="296" href="#296">296</a> 			<strong class="jxr_keyword">if</strong> (token.hasMoreTokens()) {
+<a name="297" href="#297">297</a>                pa.setFromKey(getToken(token.nextToken()));
+<a name="298" href="#298">298</a>                pa.setToKey(getToken(token.nextToken()));
+<a name="299" href="#299">299</a> 				KeyedReference kr = objectFactory.createKeyedReference();
+<a name="300" href="#300">300</a> 				<em class="jxr_comment">// Sometimes the Key is UUID:something</em>
+<a name="301" href="#301">301</a>                String str = getToken(token.nextToken());
+<a name="302" href="#302">302</a> 				<strong class="jxr_keyword">if</strong> (<span class="jxr_string">"UUID"</span>.equalsIgnoreCase(str))
+<a name="303" href="#303">303</a> 					str += <span class="jxr_string">":"</span> + getToken(token.nextToken());
+<a name="304" href="#304">304</a>                kr.setTModelKey(str);
+<a name="305" href="#305">305</a>                kr.setKeyName(getToken(token.nextToken()));
+<a name="306" href="#306">306</a>                kr.setKeyValue(getToken(token.nextToken()));
+<a name="307" href="#307">307</a>                pa.setKeyedReference(kr);
+<a name="308" href="#308">308</a>             }
+<a name="309" href="#309">309</a> 
+<a name="310" href="#310">310</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
+<a name="311" href="#311">311</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
+<a name="312" href="#312">312</a>         }
+<a name="313" href="#313">313</a>         <strong class="jxr_keyword">return</strong> pa;
+<a name="314" href="#314">314</a>     }
+<a name="315" href="#315">315</a> 
+<a name="316" href="#316">316</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> BusinessService getBusinessServiceFromJAXRService(
+<a name="317" href="#317">317</a> 			Service service) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="318" href="#318">318</a> 		BusinessService bs = objectFactory.createBusinessService();
+<a name="319" href="#319">319</a> 		<strong class="jxr_keyword">try</strong> {
+<a name="320" href="#320">320</a> 			InternationalString iname = service.getName();
+<a name="321" href="#321">321</a> 						
+<a name="322" href="#322">322</a> 			addNames(bs.getName(), iname);
+<a name="323" href="#323">323</a> 	         
+<a name="324" href="#324">324</a>             InternationalString idesc = service.getDescription();
+<a name="325" href="#325">325</a>     
+<a name="326" href="#326">326</a>            addDescriptions(bs.getDescription(), idesc);
 <a name="327" href="#327">327</a> 
-<a name="328" href="#328">328</a> 				<strong class="jxr_keyword">if</strong> (k != <strong class="jxr_keyword">null</strong> &amp;&amp; k.getId() != <strong class="jxr_keyword">null</strong>) {
-<a name="329" href="#329">329</a>                     bs.setBusinessKey(k.getId());
-<a name="330" href="#330">330</a>                 } 
-<a name="331" href="#331">331</a>                     
-<a name="332" href="#332">332</a> 			} <strong class="jxr_keyword">else</strong> {
-<a name="333" href="#333">333</a>                 <em class="jxr_comment">/*</em>
-<a name="334" href="#334">334</a> <em class="jxr_comment">                 * gmj - I *think* this is the right thing to do</em>
-<a name="335" href="#335">335</a> <em class="jxr_comment">                 */</em>
-<a name="336" href="#336">336</a> 				<strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(
-<a name="337" href="#337">337</a> 						<span class="jxr_string">"Service has no associated organization"</span>);
-<a name="338" href="#338">338</a>             }
-<a name="339" href="#339">339</a> 
-<a name="340" href="#340">340</a> 			<strong class="jxr_keyword">if</strong> (service.getKey() != <strong class="jxr_keyword">null</strong> &amp;&amp; service.getKey().getId() != <strong class="jxr_keyword">null</strong>) {
-<a name="341" href="#341">341</a>                 bs.setServiceKey(service.getKey().getId());
-<a name="342" href="#342">342</a>             } <strong class="jxr_keyword">else</strong> {
-<a name="343" href="#343">343</a>                 bs.setServiceKey(<span class="jxr_string">""</span>);
-<a name="344" href="#344">344</a>             }
-<a name="345" href="#345">345</a> 
-<a name="346" href="#346">346</a>             CategoryBag catBag = getCategoryBagFromClassifications(service.getClassifications());
-<a name="347" href="#347">347</a>             <strong class="jxr_keyword">if</strong> (catBag!=<strong class="jxr_keyword">null</strong>) {
-<a name="348" href="#348">348</a>                 bs.setCategoryBag(catBag);
-<a name="349" href="#349">349</a>             }
-<a name="350" href="#350">350</a> 
-<a name="351" href="#351">351</a>             <em class="jxr_comment">//Add the ServiceBinding information</em>
-<a name="352" href="#352">352</a>             BindingTemplates bt = getBindingTemplates(service.getServiceBindings());
-<a name="353" href="#353">353</a>             <strong class="jxr_keyword">if</strong> (bt != <strong class="jxr_keyword">null</strong>) {
-<a name="354" href="#354">354</a>                 bs.setBindingTemplates(bt);
-<a name="355" href="#355">355</a>             }
-<a name="356" href="#356">356</a>    		    
-<a name="357" href="#357">357</a>             log.debug(<span class="jxr_string">"BusinessService="</span> + bs.toString());
-<a name="358" href="#358">358</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="359" href="#359">359</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="360" href="#360">360</a>         }
-<a name="361" href="#361">361</a>         <strong class="jxr_keyword">return</strong> bs;
-<a name="362" href="#362">362</a>     }
-<a name="363" href="#363">363</a> 
-<a name="364" href="#364">364</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> TModel getTModelFromJAXRClassificationScheme(
-<a name="365" href="#365">365</a> 			ClassificationScheme classificationScheme) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="366" href="#366">366</a> 		TModel tm = objectFactory.createTModel();
-<a name="367" href="#367">367</a> 		<strong class="jxr_keyword">try</strong> {
-<a name="368" href="#368">368</a>             <em class="jxr_comment">/*</em>
-<a name="369" href="#369">369</a> <em class="jxr_comment">             * a fresh scheme might not have a key</em>
-<a name="370" href="#370">370</a> <em class="jxr_comment">             */</em>
+<a name="328" href="#328">328</a>             Organization o = service.getProvidingOrganization();
+<a name="329" href="#329">329</a> 
+<a name="330" href="#330">330</a>             <em class="jxr_comment">/*</em>
+<a name="331" href="#331">331</a> <em class="jxr_comment">             * there may not always be a key...</em>
+<a name="332" href="#332">332</a> <em class="jxr_comment">             */</em>
+<a name="333" href="#333">333</a>             <strong class="jxr_keyword">if</strong> (o != <strong class="jxr_keyword">null</strong>) {
+<a name="334" href="#334">334</a>                 Key k = o.getKey();
+<a name="335" href="#335">335</a> 
+<a name="336" href="#336">336</a> 				<strong class="jxr_keyword">if</strong> (k != <strong class="jxr_keyword">null</strong> &amp;&amp; k.getId() != <strong class="jxr_keyword">null</strong>) {
+<a name="337" href="#337">337</a>                     bs.setBusinessKey(k.getId());
+<a name="338" href="#338">338</a>                 } 
+<a name="339" href="#339">339</a>                     
+<a name="340" href="#340">340</a> 			} <strong class="jxr_keyword">else</strong> {
+<a name="341" href="#341">341</a>                 <em class="jxr_comment">/*</em>
+<a name="342" href="#342">342</a> <em class="jxr_comment">                 * gmj - I *think* this is the right thing to do</em>
+<a name="343" href="#343">343</a> <em class="jxr_comment">                 */</em>
+<a name="344" href="#344">344</a> 				<strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(
+<a name="345" href="#345">345</a> 						<span class="jxr_string">"Service has no associated organization"</span>);
+<a name="346" href="#346">346</a>             }
+<a name="347" href="#347">347</a> 
+<a name="348" href="#348">348</a> 			<strong class="jxr_keyword">if</strong> (service.getKey() != <strong class="jxr_keyword">null</strong> &amp;&amp; service.getKey().getId() != <strong class="jxr_keyword">null</strong>) {
+<a name="349" href="#349">349</a>                 bs.setServiceKey(service.getKey().getId());
+<a name="350" href="#350">350</a>             } <strong class="jxr_keyword">else</strong> {
+<a name="351" href="#351">351</a>                 bs.setServiceKey(<span class="jxr_string">""</span>);
+<a name="352" href="#352">352</a>             }
+<a name="353" href="#353">353</a> 
+<a name="354" href="#354">354</a>             CategoryBag catBag = getCategoryBagFromClassifications(service.getClassifications());
+<a name="355" href="#355">355</a>             <strong class="jxr_keyword">if</strong> (catBag!=<strong class="jxr_keyword">null</strong>) {
+<a name="356" href="#356">356</a>                 bs.setCategoryBag(catBag);
+<a name="357" href="#357">357</a>             }
+<a name="358" href="#358">358</a> 
+<a name="359" href="#359">359</a>             <em class="jxr_comment">//Add the ServiceBinding information</em>
+<a name="360" href="#360">360</a>             BindingTemplates bt = getBindingTemplates(service.getServiceBindings());
+<a name="361" href="#361">361</a>             <strong class="jxr_keyword">if</strong> (bt != <strong class="jxr_keyword">null</strong>) {
+<a name="362" href="#362">362</a>                 bs.setBindingTemplates(bt);
+<a name="363" href="#363">363</a>             }
+<a name="364" href="#364">364</a>    		    
+<a name="365" href="#365">365</a>             log.debug(<span class="jxr_string">"BusinessService="</span> + bs.toString());
+<a name="366" href="#366">366</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
+<a name="367" href="#367">367</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
+<a name="368" href="#368">368</a>         }
+<a name="369" href="#369">369</a>         <strong class="jxr_keyword">return</strong> bs;
+<a name="370" href="#370">370</a>     }
 <a name="371" href="#371">371</a> 
-<a name="372" href="#372">372</a>             Key k = classificationScheme.getKey();
-<a name="373" href="#373">373</a> 
-<a name="374" href="#374">374</a>             <strong class="jxr_keyword">if</strong> (k != <strong class="jxr_keyword">null</strong> &amp;&amp; k.getId() != <strong class="jxr_keyword">null</strong>) {
-<a name="375" href="#375">375</a>                 tm.setTModelKey(k.getId());
-<a name="376" href="#376">376</a>             } <strong class="jxr_keyword">else</strong> {
-<a name="377" href="#377">377</a>                 tm.setTModelKey(<span class="jxr_string">""</span>);
-<a name="378" href="#378">378</a>             }
+<a name="372" href="#372">372</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> TModel getTModelFromJAXRClassificationScheme(
+<a name="373" href="#373">373</a> 			ClassificationScheme classificationScheme) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="374" href="#374">374</a> 		TModel tm = objectFactory.createTModel();
+<a name="375" href="#375">375</a> 		<strong class="jxr_keyword">try</strong> {
+<a name="376" href="#376">376</a>             <em class="jxr_comment">/*</em>
+<a name="377" href="#377">377</a> <em class="jxr_comment">             * a fresh scheme might not have a key</em>
+<a name="378" href="#378">378</a> <em class="jxr_comment">             */</em>
 <a name="379" href="#379">379</a> 
-<a name="380" href="#380">380</a>             <em class="jxr_comment">/*</em>
-<a name="381" href="#381">381</a> <em class="jxr_comment">             * There's no reason to believe these are here either</em>
-<a name="382" href="#382">382</a> <em class="jxr_comment">             */</em>
-<a name="383" href="#383">383</a> 
-<a name="384" href="#384">384</a>             Slot s = classificationScheme.getSlot(<span class="jxr_string">"authorizedName"</span>);
-<a name="385" href="#385">385</a> <em class="jxr_comment">/*</em>
-<a name="386" href="#386">386</a> <em class="jxr_comment">			if (s != null &amp;&amp; s.getName() != null) {</em>
-<a name="387" href="#387">387</a> <em class="jxr_comment">                tm.setAuthorizedName(s.getName());</em>
-<a name="388" href="#388">388</a> <em class="jxr_comment">            }</em>
-<a name="389" href="#389">389</a> <em class="jxr_comment">*/</em>
-<a name="390" href="#390">390</a>             s = classificationScheme.getSlot(<span class="jxr_string">"operator"</span>);
-<a name="391" href="#391">391</a> <em class="jxr_comment">/*</em>
-<a name="392" href="#392">392</a> <em class="jxr_comment">			if (s != null &amp;&amp; s.getName() != null) {</em>
-<a name="393" href="#393">393</a> <em class="jxr_comment">                tm.setOperator(s.getName());</em>
-<a name="394" href="#394">394</a> <em class="jxr_comment">            }</em>
-<a name="395" href="#395">395</a> <em class="jxr_comment">*/</em>
-<a name="396" href="#396">396</a> 			InternationalString iname = classificationScheme.getName();
-<a name="397" href="#397">397</a> 			 
-<a name="398" href="#398">398</a>             tm.setName(getFirstName(iname));
-<a name="399" href="#399">399</a> 
-<a name="400" href="#400">400</a> 			InternationalString idesc = classificationScheme.getDescription();
-<a name="401" href="#401">401</a> 			
-<a name="402" href="#402">402</a> 		    addDescriptions(tm.getDescription(), idesc);
-<a name="403" href="#403">403</a> 
-<a name="404" href="#404">404</a>             IdentifierBag idBag = getIdentifierBagFromExternalIdentifiers(classificationScheme.getExternalIdentifiers());
-<a name="405" href="#405">405</a>             <strong class="jxr_keyword">if</strong> (idBag!=<strong class="jxr_keyword">null</strong>) {
-<a name="406" href="#406">406</a>                 tm.setIdentifierBag(idBag);
-<a name="407" href="#407">407</a>             }
-<a name="408" href="#408">408</a>             CategoryBag catBag = getCategoryBagFromClassifications(classificationScheme.getClassifications());
-<a name="409" href="#409">409</a>             <strong class="jxr_keyword">if</strong> (catBag!=<strong class="jxr_keyword">null</strong>) {
-<a name="410" href="#410">410</a>                 tm.setCategoryBag(catBag);
-<a name="411" href="#411">411</a>             }
-<a name="412" href="#412">412</a> 			
-<a name="413" href="#413">413</a> 			<em class="jxr_comment">// ToDO: overviewDoc</em>
-<a name="414" href="#414">414</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="415" href="#415">415</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="416" href="#416">416</a>         }
-<a name="417" href="#417">417</a>         <strong class="jxr_keyword">return</strong> tm;
-<a name="418" href="#418">418</a>     }
-<a name="419" href="#419">419</a> 
-<a name="420" href="#420">420</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> TModel getTModelFromJAXRConcept(Concept concept)
-<a name="421" href="#421">421</a> 			<strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="422" href="#422">422</a>     	TModel tm = objectFactory.createTModel();
-<a name="423" href="#423">423</a> 		<strong class="jxr_keyword">if</strong> (concept == <strong class="jxr_keyword">null</strong>)
-<a name="424" href="#424">424</a> 			<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="425" href="#425">425</a> 		<strong class="jxr_keyword">try</strong> {
-<a name="426" href="#426">426</a>             Key key = concept.getKey();
-<a name="427" href="#427">427</a> 			<strong class="jxr_keyword">if</strong> (key != <strong class="jxr_keyword">null</strong> &amp;&amp; key.getId() != <strong class="jxr_keyword">null</strong>)
-<a name="428" href="#428">428</a> 				tm.setTModelKey(key.getId());
-<a name="429" href="#429">429</a>             Slot sl1 = concept.getSlot(<span class="jxr_string">"authorizedName"</span>);
-<a name="430" href="#430">430</a>             <em class="jxr_comment">/*</em>
-<a name="431" href="#431">431</a> <em class="jxr_comment">			if (sl1 != null &amp;&amp; sl1.getName() != null)</em>
-<a name="432" href="#432">432</a> <em class="jxr_comment">				tm.setAuthorizedName(sl1.getName());</em>
-<a name="433" href="#433">433</a> 
-<a name="434" href="#434">434</a> <em class="jxr_comment">            Slot sl2 = concept.getSlot("operator");</em>
-<a name="435" href="#435">435</a> <em class="jxr_comment">			if (sl2 != null &amp;&amp; sl2.getName() != null)</em>
-<a name="436" href="#436">436</a> <em class="jxr_comment">				tm.setOperator(sl2.getName());</em>
-<a name="437" href="#437">437</a> <em class="jxr_comment">			*/</em>
-<a name="438" href="#438">438</a> 			InternationalString iname = concept.getName();
-<a name="439" href="#439">439</a> 
-<a name="440" href="#440">440</a>             tm.setName(getFirstName(iname));
+<a name="380" href="#380">380</a>             Key k = classificationScheme.getKey();
+<a name="381" href="#381">381</a> 
+<a name="382" href="#382">382</a>             <strong class="jxr_keyword">if</strong> (k != <strong class="jxr_keyword">null</strong> &amp;&amp; k.getId() != <strong class="jxr_keyword">null</strong>) {
+<a name="383" href="#383">383</a>                 tm.setTModelKey(k.getId());
+<a name="384" href="#384">384</a>             } <strong class="jxr_keyword">else</strong> {
+<a name="385" href="#385">385</a>                 tm.setTModelKey(<span class="jxr_string">""</span>);
+<a name="386" href="#386">386</a>             }
+<a name="387" href="#387">387</a> 
+<a name="388" href="#388">388</a>             <em class="jxr_comment">/*</em>
+<a name="389" href="#389">389</a> <em class="jxr_comment">             * There's no reason to believe these are here either</em>
+<a name="390" href="#390">390</a> <em class="jxr_comment">             */</em>
+<a name="391" href="#391">391</a> 
+<a name="392" href="#392">392</a>             Slot s = classificationScheme.getSlot(<span class="jxr_string">"authorizedName"</span>);
+<a name="393" href="#393">393</a> <em class="jxr_comment">/*</em>
+<a name="394" href="#394">394</a> <em class="jxr_comment">			if (s != null &amp;&amp; s.getName() != null) {</em>
+<a name="395" href="#395">395</a> <em class="jxr_comment">                tm.setAuthorizedName(s.getName());</em>
+<a name="396" href="#396">396</a> <em class="jxr_comment">            }</em>
+<a name="397" href="#397">397</a> <em class="jxr_comment">*/</em>
+<a name="398" href="#398">398</a>             s = classificationScheme.getSlot(<span class="jxr_string">"operator"</span>);
+<a name="399" href="#399">399</a> <em class="jxr_comment">/*</em>
+<a name="400" href="#400">400</a> <em class="jxr_comment">			if (s != null &amp;&amp; s.getName() != null) {</em>
+<a name="401" href="#401">401</a> <em class="jxr_comment">                tm.setOperator(s.getName());</em>
+<a name="402" href="#402">402</a> <em class="jxr_comment">            }</em>
+<a name="403" href="#403">403</a> <em class="jxr_comment">*/</em>
+<a name="404" href="#404">404</a> 			InternationalString iname = classificationScheme.getName();
+<a name="405" href="#405">405</a> 			 
+<a name="406" href="#406">406</a>             tm.setName(getFirstName(iname));
+<a name="407" href="#407">407</a> 
+<a name="408" href="#408">408</a> 			InternationalString idesc = classificationScheme.getDescription();
+<a name="409" href="#409">409</a> 			
+<a name="410" href="#410">410</a> 		    addDescriptions(tm.getDescription(), idesc);
+<a name="411" href="#411">411</a> 
+<a name="412" href="#412">412</a>             IdentifierBag idBag = getIdentifierBagFromExternalIdentifiers(classificationScheme.getExternalIdentifiers());
+<a name="413" href="#413">413</a>             <strong class="jxr_keyword">if</strong> (idBag!=<strong class="jxr_keyword">null</strong>) {
+<a name="414" href="#414">414</a>                 tm.setIdentifierBag(idBag);
+<a name="415" href="#415">415</a>             }
+<a name="416" href="#416">416</a>             CategoryBag catBag = getCategoryBagFromClassifications(classificationScheme.getClassifications());
+<a name="417" href="#417">417</a>             <strong class="jxr_keyword">if</strong> (catBag!=<strong class="jxr_keyword">null</strong>) {
+<a name="418" href="#418">418</a>                 tm.setCategoryBag(catBag);
+<a name="419" href="#419">419</a>             }
+<a name="420" href="#420">420</a> 			
+<a name="421" href="#421">421</a> 			<em class="jxr_comment">// ToDO: overviewDoc</em>
+<a name="422" href="#422">422</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
+<a name="423" href="#423">423</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
+<a name="424" href="#424">424</a>         }
+<a name="425" href="#425">425</a>         <strong class="jxr_keyword">return</strong> tm;
+<a name="426" href="#426">426</a>     }
+<a name="427" href="#427">427</a> 
+<a name="428" href="#428">428</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> TModel getTModelFromJAXRConcept(Concept concept)
+<a name="429" href="#429">429</a> 			<strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="430" href="#430">430</a>     	TModel tm = objectFactory.createTModel();
+<a name="431" href="#431">431</a> 		<strong class="jxr_keyword">if</strong> (concept == <strong class="jxr_keyword">null</strong>)
+<a name="432" href="#432">432</a> 			<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="433" href="#433">433</a> 		<strong class="jxr_keyword">try</strong> {
+<a name="434" href="#434">434</a>             Key key = concept.getKey();
+<a name="435" href="#435">435</a> 			<strong class="jxr_keyword">if</strong> (key != <strong class="jxr_keyword">null</strong> &amp;&amp; key.getId() != <strong class="jxr_keyword">null</strong>)
+<a name="436" href="#436">436</a> 				tm.setTModelKey(key.getId());
+<a name="437" href="#437">437</a>             Slot sl1 = concept.getSlot(<span class="jxr_string">"authorizedName"</span>);
+<a name="438" href="#438">438</a>             <em class="jxr_comment">/*</em>
+<a name="439" href="#439">439</a> <em class="jxr_comment">			if (sl1 != null &amp;&amp; sl1.getName() != null)</em>
+<a name="440" href="#440">440</a> <em class="jxr_comment">				tm.setAuthorizedName(sl1.getName());</em>
 <a name="441" href="#441">441</a> 
-<a name="442" href="#442">442</a>             InternationalString idesc = concept.getDescription();
-<a name="443" href="#443">443</a> 			
-<a name="444" href="#444">444</a>             addDescriptions(tm.getDescription(), idesc);
-<a name="445" href="#445">445</a> 
-<a name="446" href="#446">446</a> <em class="jxr_comment">//          External Links</em>
-<a name="447" href="#447">447</a>             Collection&lt;ExternalLink&gt; externalLinks = concept.getExternalLinks(); 
-<a name="448" href="#448">448</a>             <strong class="jxr_keyword">if</strong>(externalLinks != <strong class="jxr_keyword">null</strong> &amp;&amp; externalLinks.size() &gt; 0)
-<a name="449" href="#449">449</a>             {
-<a name="450" href="#450">450</a>                 tm.getOverviewDoc().add(getOverviewDocFromExternalLink((ExternalLink)externalLinks.iterator().next()));
-<a name="451" href="#451">451</a>             }  
-<a name="452" href="#452">452</a> 
-<a name="453" href="#453">453</a>             IdentifierBag idBag = getIdentifierBagFromExternalIdentifiers(concept.getExternalIdentifiers());
-<a name="454" href="#454">454</a>             <strong class="jxr_keyword">if</strong> (idBag!=<strong class="jxr_keyword">null</strong>) {
-<a name="455" href="#455">455</a>                 tm.setIdentifierBag(idBag);
-<a name="456" href="#456">456</a>             }
-<a name="457" href="#457">457</a>             CategoryBag catBag = getCategoryBagFromClassifications(concept.getClassifications());
-<a name="458" href="#458">458</a>             <strong class="jxr_keyword">if</strong> (catBag!=<strong class="jxr_keyword">null</strong>) {
-<a name="459" href="#459">459</a>                 tm.setCategoryBag(catBag);
-<a name="460" href="#460">460</a>             }
-<a name="461" href="#461">461</a> 
-<a name="462" href="#462">462</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="463" href="#463">463</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="464" href="#464">464</a>         }
-<a name="465" href="#465">465</a>         <strong class="jxr_keyword">return</strong> tm;
-<a name="466" href="#466">466</a>     }
-<a name="467" href="#467">467</a> 
-<a name="468" href="#468">468</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> addDescriptions(List&lt;Description&gt; descripions, InternationalString idesc) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="469" href="#469">469</a>         <strong class="jxr_keyword">if</strong> (idesc != <strong class="jxr_keyword">null</strong>) {
-<a name="470" href="#470">470</a>             <strong class="jxr_keyword">for</strong> (Object o : idesc.getLocalizedStrings()) {
-<a name="471" href="#471">471</a>                 LocalizedString locName = (LocalizedString) o;
-<a name="472" href="#472">472</a>                 Description desc = objectFactory.createDescription();
-<a name="473" href="#473">473</a>                 descripions.add(desc);
-<a name="474" href="#474">474</a>                 desc.setValue(locName.getValue());
-<a name="475" href="#475">475</a>                 desc.setLang(locName.getLocale().getLanguage());
-<a name="476" href="#476">476</a>             }
-<a name="477" href="#477">477</a>         }
-<a name="478" href="#478">478</a>     }
-<a name="479" href="#479">479</a> 
-<a name="480" href="#480">480</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Name getFirstName(InternationalString iname) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="481" href="#481">481</a>         <strong class="jxr_keyword">for</strong> (Object o : iname.getLocalizedStrings()) {
-<a name="482" href="#482">482</a>             LocalizedString locName = (LocalizedString) o;
-<a name="483" href="#483">483</a>             Name name = objectFactory.createName();
-<a name="484" href="#484">484</a>             name.setValue(locName.getValue());
-<a name="485" href="#485">485</a>             name.setLang(locName.getLocale().getLanguage());
-<a name="486" href="#486">486</a>             <strong class="jxr_keyword">return</strong> name;
-<a name="487" href="#487">487</a>         }
-<a name="488" href="#488">488</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="489" href="#489">489</a>     }
-<a name="490" href="#490">490</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> addNames(List&lt;Name&gt; names, InternationalString iname) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="491" href="#491">491</a>         <strong class="jxr_keyword">for</strong> (Object o : iname.getLocalizedStrings()) {
-<a name="492" href="#492">492</a>             LocalizedString locName = (LocalizedString) o;
-<a name="493" href="#493">493</a>             Name name = objectFactory.createName();
-<a name="494" href="#494">494</a>             name.setValue(locName.getValue());
-<a name="495" href="#495">495</a>             name.setLang(locName.getLocale().getLanguage());
-<a name="496" href="#496">496</a>             names.add(name);
-<a name="497" href="#497">497</a>         }
-<a name="498" href="#498">498</a>     }
-<a name="499" href="#499">499</a> 
-<a name="500" href="#500">500</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> BusinessEntity getBusinessEntityFromJAXROrg(Organization organization)
-<a name="501" href="#501">501</a> 			<strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="502" href="#502">502</a> 		BusinessEntity biz = objectFactory.createBusinessEntity();
-<a name="503" href="#503">503</a> 		BusinessServices bss = objectFactory.createBusinessServices();
-<a name="504" href="#504">504</a> 		BusinessService[] barr = <strong class="jxr_keyword">new</strong> BusinessService[0];
-<a name="505" href="#505">505</a> 
-<a name="506" href="#506">506</a> 		<strong class="jxr_keyword">try</strong> {
-<a name="507" href="#507">507</a> 			<em class="jxr_comment">// It may just be an update</em>
-<a name="508" href="#508">508</a>             Key key = organization.getKey();
-<a name="509" href="#509">509</a> 			<strong class="jxr_keyword">if</strong> (key != <strong class="jxr_keyword">null</strong> &amp;&amp; key.getId() != <strong class="jxr_keyword">null</strong>) {
-<a name="510" href="#510">510</a> 				biz.setBusinessKey(key.getId());
-<a name="511" href="#511">511</a>             } <strong class="jxr_keyword">else</strong> {
-<a name="512" href="#512">512</a>                 biz.setBusinessKey(<span class="jxr_string">""</span>);
-<a name="513" href="#513">513</a>             }
-<a name="514" href="#514">514</a> 			<em class="jxr_comment">// Lets get the Organization attributes at the top level</em>
-<a name="515" href="#515">515</a> 			
-<a name="516" href="#516">516</a> 			InternationalString iname = organization.getName();
-<a name="517" href="#517">517</a> 			
-<a name="518" href="#518">518</a> 			<strong class="jxr_keyword">if</strong> (iname != <strong class="jxr_keyword">null</strong>) {
-<a name="519" href="#519">519</a>                 addNames(biz.getName(), iname);
-<a name="520" href="#520">520</a> 			}
-<a name="521" href="#521">521</a> 			
-<a name="522" href="#522">522</a> 			InternationalString idesc = organization.getDescription();
+<a name="442" href="#442">442</a> <em class="jxr_comment">            Slot sl2 = concept.getSlot("operator");</em>
+<a name="443" href="#443">443</a> <em class="jxr_comment">			if (sl2 != null &amp;&amp; sl2.getName() != null)</em>
+<a name="444" href="#444">444</a> <em class="jxr_comment">				tm.setOperator(sl2.getName());</em>
+<a name="445" href="#445">445</a> <em class="jxr_comment">			*/</em>
+<a name="446" href="#446">446</a> 			InternationalString iname = concept.getName();
+<a name="447" href="#447">447</a> 
+<a name="448" href="#448">448</a>             tm.setName(getFirstName(iname));
+<a name="449" href="#449">449</a> 
+<a name="450" href="#450">450</a>             InternationalString idesc = concept.getDescription();
+<a name="451" href="#451">451</a> 			
+<a name="452" href="#452">452</a>             addDescriptions(tm.getDescription(), idesc);
+<a name="453" href="#453">453</a> 
+<a name="454" href="#454">454</a> <em class="jxr_comment">//          External Links</em>
+<a name="455" href="#455">455</a>             Collection&lt;ExternalLink&gt; externalLinks = concept.getExternalLinks(); 
+<a name="456" href="#456">456</a>             <strong class="jxr_keyword">if</strong>(externalLinks != <strong class="jxr_keyword">null</strong> &amp;&amp; externalLinks.size() &gt; 0)
+<a name="457" href="#457">457</a>             {
+<a name="458" href="#458">458</a>                 tm.getOverviewDoc().add(getOverviewDocFromExternalLink((ExternalLink)externalLinks.iterator().next()));
+<a name="459" href="#459">459</a>             }  
+<a name="460" href="#460">460</a> 
+<a name="461" href="#461">461</a>             IdentifierBag idBag = getIdentifierBagFromExternalIdentifiers(concept.getExternalIdentifiers());
+<a name="462" href="#462">462</a>             <strong class="jxr_keyword">if</strong> (idBag!=<strong class="jxr_keyword">null</strong>) {
+<a name="463" href="#463">463</a>                 tm.setIdentifierBag(idBag);
+<a name="464" href="#464">464</a>             }
+<a name="465" href="#465">465</a>             CategoryBag catBag = getCategoryBagFromClassifications(concept.getClassifications());
+<a name="466" href="#466">466</a>             <strong class="jxr_keyword">if</strong> (catBag!=<strong class="jxr_keyword">null</strong>) {
+<a name="467" href="#467">467</a>                 tm.setCategoryBag(catBag);
+<a name="468" href="#468">468</a>             }
+<a name="469" href="#469">469</a> 
+<a name="470" href="#470">470</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
+<a name="471" href="#471">471</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
+<a name="472" href="#472">472</a>         }
+<a name="473" href="#473">473</a>         <strong class="jxr_keyword">return</strong> tm;
+<a name="474" href="#474">474</a>     }
+<a name="475" href="#475">475</a> 
+<a name="476" href="#476">476</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> addDescriptions(List&lt;Description&gt; descripions, InternationalString idesc) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="477" href="#477">477</a>         <strong class="jxr_keyword">if</strong> (idesc != <strong class="jxr_keyword">null</strong>) {
+<a name="478" href="#478">478</a>             <strong class="jxr_keyword">for</strong> (Object o : idesc.getLocalizedStrings()) {
+<a name="479" href="#479">479</a>                 LocalizedString locName = (LocalizedString) o;
+<a name="480" href="#480">480</a>                 Description desc = objectFactory.createDescription();
+<a name="481" href="#481">481</a>                 descripions.add(desc);
+<a name="482" href="#482">482</a>                 desc.setValue(locName.getValue());
+<a name="483" href="#483">483</a>                 desc.setLang(locName.getLocale().getLanguage());
+<a name="484" href="#484">484</a>             }
+<a name="485" href="#485">485</a>         }
+<a name="486" href="#486">486</a>     }
+<a name="487" href="#487">487</a> 
+<a name="488" href="#488">488</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Name getFirstName(InternationalString iname) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="489" href="#489">489</a>         <strong class="jxr_keyword">for</strong> (Object o : iname.getLocalizedStrings()) {
+<a name="490" href="#490">490</a>             LocalizedString locName = (LocalizedString) o;
+<a name="491" href="#491">491</a>             Name name = objectFactory.createName();
+<a name="492" href="#492">492</a>             name.setValue(locName.getValue());
+<a name="493" href="#493">493</a>             name.setLang(locName.getLocale().getLanguage());
+<a name="494" href="#494">494</a>             <strong class="jxr_keyword">return</strong> name;
+<a name="495" href="#495">495</a>         }
+<a name="496" href="#496">496</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="497" href="#497">497</a>     }
+<a name="498" href="#498">498</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> addNames(List&lt;Name&gt; names, InternationalString iname) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="499" href="#499">499</a>         <strong class="jxr_keyword">for</strong> (Object o : iname.getLocalizedStrings()) {
+<a name="500" href="#500">500</a>             LocalizedString locName = (LocalizedString) o;
+<a name="501" href="#501">501</a>             Name name = objectFactory.createName();
+<a name="502" href="#502">502</a>             name.setValue(locName.getValue());
+<a name="503" href="#503">503</a>             name.setLang(locName.getLocale().getLanguage());
+<a name="504" href="#504">504</a>             names.add(name);
+<a name="505" href="#505">505</a>         }
+<a name="506" href="#506">506</a>     }
+<a name="507" href="#507">507</a> 
+<a name="508" href="#508">508</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> BusinessEntity getBusinessEntityFromJAXROrg(Organization organization)
+<a name="509" href="#509">509</a> 			<strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="510" href="#510">510</a> 		BusinessEntity biz = objectFactory.createBusinessEntity();
+<a name="511" href="#511">511</a> 		BusinessServices bss = objectFactory.createBusinessServices();
+<a name="512" href="#512">512</a> 		BusinessService[] barr = <strong class="jxr_keyword">new</strong> BusinessService[0];
+<a name="513" href="#513">513</a> 
+<a name="514" href="#514">514</a> 		<strong class="jxr_keyword">try</strong> {
+<a name="515" href="#515">515</a> 			<em class="jxr_comment">// It may just be an update</em>
+<a name="516" href="#516">516</a>             Key key = organization.getKey();
+<a name="517" href="#517">517</a> 			<strong class="jxr_keyword">if</strong> (key != <strong class="jxr_keyword">null</strong> &amp;&amp; key.getId() != <strong class="jxr_keyword">null</strong>) {
+<a name="518" href="#518">518</a> 				biz.setBusinessKey(key.getId());
+<a name="519" href="#519">519</a>             } <strong class="jxr_keyword">else</strong> {
+<a name="520" href="#520">520</a>                 biz.setBusinessKey(<span class="jxr_string">""</span>);
+<a name="521" href="#521">521</a>             }
+<a name="522" href="#522">522</a> 			<em class="jxr_comment">// Lets get the Organization attributes at the top level</em>
 <a name="523" href="#523">523</a> 			
-<a name="524" href="#524">524</a>             addDescriptions(biz.getDescription(), idesc);
-<a name="525" href="#525">525</a> 
-<a name="526" href="#526">526</a> 			<strong class="jxr_keyword">if</strong> (organization.getPrimaryContact() != <strong class="jxr_keyword">null</strong> &amp;&amp; 
-<a name="527" href="#527">527</a> 				organization.getPrimaryContact().getPersonName()!= <strong class="jxr_keyword">null</strong> &amp;&amp;
-<a name="528" href="#528">528</a> 				organization.getPrimaryContact().getPersonName().getFullName() != <strong class="jxr_keyword">null</strong>) {
-<a name="529" href="#529">529</a> 
-<a name="530" href="#530">530</a> 				<em class="jxr_comment">//biz.setAuthorizedName(organization.getPrimaryContact().getPersonName()</em>
-<a name="531" href="#531">531</a> 				<em class="jxr_comment">//		.getFullName());</em>
-<a name="532" href="#532">532</a> 			}
+<a name="524" href="#524">524</a> 			InternationalString iname = organization.getName();
+<a name="525" href="#525">525</a> 			
+<a name="526" href="#526">526</a> 			<strong class="jxr_keyword">if</strong> (iname != <strong class="jxr_keyword">null</strong>) {
+<a name="527" href="#527">527</a>                 addNames(biz.getName(), iname);
+<a name="528" href="#528">528</a> 			}
+<a name="529" href="#529">529</a> 			
+<a name="530" href="#530">530</a> 			InternationalString idesc = organization.getDescription();
+<a name="531" href="#531">531</a> 			
+<a name="532" href="#532">532</a>             addDescriptions(biz.getDescription(), idesc);
 <a name="533" href="#533">533</a> 
-<a name="534" href="#534">534</a>             Collection&lt;Service&gt; s = organization.getServices();
-<a name="535" href="#535">535</a>             log.debug(<span class="jxr_string">"?Org has services="</span> + s.isEmpty());
-<a name="536" href="#536">536</a> 
-<a name="537" href="#537">537</a> 			barr = <strong class="jxr_keyword">new</strong> BusinessService[s.size()];
-<a name="538" href="#538">538</a> 
-<a name="539" href="#539">539</a>             Iterator&lt;Service&gt; iter = s.iterator();
-<a name="540" href="#540">540</a> 			<strong class="jxr_keyword">int</strong> barrPos = 0;
-<a name="541" href="#541">541</a> 			<strong class="jxr_keyword">while</strong> (iter.hasNext()) {
-<a name="542" href="#542">542</a> 				BusinessService bs = ScoutJaxrUddiV3Helper
-<a name="543" href="#543">543</a> 						.getBusinessServiceFromJAXRService((Service) iter
-<a name="544" href="#544">544</a> 								.next());
-<a name="545" href="#545">545</a> 				barr[barrPos] = bs;
-<a name="546" href="#546">546</a> 				barrPos++;
-<a name="547" href="#547">547</a>             }
-<a name="548" href="#548">548</a> 
-<a name="549" href="#549">549</a>             <em class="jxr_comment">/*</em>
-<a name="550" href="#550">550</a> <em class="jxr_comment">             * map users : JAXR has concept of 'primary contact', which is a</em>
-<a name="551" href="#551">551</a> <em class="jxr_comment">             * special designation for one of the users, and D6.1 seems to say</em>
-<a name="552" href="#552">552</a> <em class="jxr_comment">             * that the first UDDI user is the primary contact</em>
-<a name="553" href="#553">553</a> <em class="jxr_comment">             */</em>
-<a name="554" href="#554">554</a> 
-<a name="555" href="#555">555</a> 			Contacts cts = objectFactory.createContacts();
-<a name="556" href="#556">556</a> 			Contact[] carr = <strong class="jxr_keyword">new</strong> Contact[0];
-<a name="557" href="#557">557</a> 
-<a name="558" href="#558">558</a>             User primaryContact = organization.getPrimaryContact();
-<a name="559" href="#559">559</a>             Collection&lt;User&gt; users = organization.getUsers();
-<a name="560" href="#560">560</a> 
-<a name="561" href="#561">561</a>             <em class="jxr_comment">// Expand array to necessary size only (xmlbeans does not like</em>
-<a name="562" href="#562">562</a>             <em class="jxr_comment">// null items in cases like this)</em>
-<a name="563" href="#563">563</a> 
-<a name="564" href="#564">564</a>             <strong class="jxr_keyword">int</strong> carrSize = 0;
+<a name="534" href="#534">534</a> 			<strong class="jxr_keyword">if</strong> (organization.getPrimaryContact() != <strong class="jxr_keyword">null</strong> &amp;&amp; 
+<a name="535" href="#535">535</a> 				organization.getPrimaryContact().getPersonName()!= <strong class="jxr_keyword">null</strong> &amp;&amp;
+<a name="536" href="#536">536</a> 				organization.getPrimaryContact().getPersonName().getFullName() != <strong class="jxr_keyword">null</strong>) {
+<a name="537" href="#537">537</a> 
+<a name="538" href="#538">538</a> 				<em class="jxr_comment">//biz.setAuthorizedName(organization.getPrimaryContact().getPersonName()</em>
+<a name="539" href="#539">539</a> 				<em class="jxr_comment">//		.getFullName());</em>
+<a name="540" href="#540">540</a> 			}
+<a name="541" href="#541">541</a> 
+<a name="542" href="#542">542</a>             Collection&lt;Service&gt; s = organization.getServices();
+<a name="543" href="#543">543</a>             log.debug(<span class="jxr_string">"?Org has services="</span> + s.isEmpty());
+<a name="544" href="#544">544</a> 
+<a name="545" href="#545">545</a> 			barr = <strong class="jxr_keyword">new</strong> BusinessService[s.size()];
+<a name="546" href="#546">546</a> 
+<a name="547" href="#547">547</a>             Iterator&lt;Service&gt; iter = s.iterator();
+<a name="548" href="#548">548</a> 			<strong class="jxr_keyword">int</strong> barrPos = 0;
+<a name="549" href="#549">549</a> 			<strong class="jxr_keyword">while</strong> (iter.hasNext()) {
+<a name="550" href="#550">550</a> 				BusinessService bs = ScoutJaxrUddiV3Helper
+<a name="551" href="#551">551</a> 						.getBusinessServiceFromJAXRService((Service) iter
+<a name="552" href="#552">552</a> 								.next());
+<a name="553" href="#553">553</a> 				barr[barrPos] = bs;
+<a name="554" href="#554">554</a> 				barrPos++;
+<a name="555" href="#555">555</a>             }
+<a name="556" href="#556">556</a> 
+<a name="557" href="#557">557</a>             <em class="jxr_comment">/*</em>
+<a name="558" href="#558">558</a> <em class="jxr_comment">             * map users : JAXR has concept of 'primary contact', which is a</em>
+<a name="559" href="#559">559</a> <em class="jxr_comment">             * special designation for one of the users, and D6.1 seems to say</em>
+<a name="560" href="#560">560</a> <em class="jxr_comment">             * that the first UDDI user is the primary contact</em>
+<a name="561" href="#561">561</a> <em class="jxr_comment">             */</em>
+<a name="562" href="#562">562</a> 
+<a name="563" href="#563">563</a> 			Contacts cts = objectFactory.createContacts();
+<a name="564" href="#564">564</a> 			Contact[] carr = <strong class="jxr_keyword">new</strong> Contact[0];
 <a name="565" href="#565">565</a> 
-<a name="566" href="#566">566</a>             <strong class="jxr_keyword">if</strong> (primaryContact != <strong class="jxr_keyword">null</strong>) {
-<a name="567" href="#567">567</a>                 carrSize += 1;
-<a name="568" href="#568">568</a>             }
-<a name="569" href="#569">569</a> 
-<a name="570" href="#570">570</a>             <em class="jxr_comment">// TODO: Clean this up and make it more efficient</em>
-<a name="571" href="#571">571</a>             Iterator&lt;User&gt; it = users.iterator();
-<a name="572" href="#572">572</a>             <strong class="jxr_keyword">while</strong> (it.hasNext()) {
-<a name="573" href="#573">573</a>                 User u = (User) it.next();
-<a name="574" href="#574">574</a>                 <strong class="jxr_keyword">if</strong> (u != primaryContact) {
-<a name="575" href="#575">575</a>                     carrSize++;
-<a name="576" href="#576">576</a>                 }
-<a name="577" href="#577">577</a>             }
-<a name="578" href="#578">578</a> 
-<a name="579" href="#579">579</a>             carr = <strong class="jxr_keyword">new</strong> Contact[carrSize];
-<a name="580" href="#580">580</a> 
-<a name="581" href="#581">581</a>             <em class="jxr_comment">/*</em>
-<a name="582" href="#582">582</a> <em class="jxr_comment">             * first do primary, and then filter that out in the loop</em>
-<a name="583" href="#583">583</a> <em class="jxr_comment">             */</em>
-<a name="584" href="#584">584</a>             <strong class="jxr_keyword">if</strong> (primaryContact != <strong class="jxr_keyword">null</strong>) {
-<a name="585" href="#585">585</a>                 Contact ct = getContactFromJAXRUser(primaryContact);
-<a name="586" href="#586">586</a>                 carr[0] = ct;
-<a name="587" href="#587">587</a>             }
+<a name="566" href="#566">566</a>             User primaryContact = organization.getPrimaryContact();
+<a name="567" href="#567">567</a>             Collection&lt;User&gt; users = organization.getUsers();
+<a name="568" href="#568">568</a> 
+<a name="569" href="#569">569</a>             <em class="jxr_comment">// Expand array to necessary size only (xmlbeans does not like</em>
+<a name="570" href="#570">570</a>             <em class="jxr_comment">// null items in cases like this)</em>
+<a name="571" href="#571">571</a> 
+<a name="572" href="#572">572</a>             <strong class="jxr_keyword">int</strong> carrSize = 0;
+<a name="573" href="#573">573</a> 
+<a name="574" href="#574">574</a>             <strong class="jxr_keyword">if</strong> (primaryContact != <strong class="jxr_keyword">null</strong>) {
+<a name="575" href="#575">575</a>                 carrSize += 1;
+<a name="576" href="#576">576</a>             }
+<a name="577" href="#577">577</a> 
+<a name="578" href="#578">578</a>             <em class="jxr_comment">// TODO: Clean this up and make it more efficient</em>
+<a name="579" href="#579">579</a>             Iterator&lt;User&gt; it = users.iterator();
+<a name="580" href="#580">580</a>             <strong class="jxr_keyword">while</strong> (it.hasNext()) {
+<a name="581" href="#581">581</a>                 User u = (User) it.next();
+<a name="582" href="#582">582</a>                 <strong class="jxr_keyword">if</strong> (u != primaryContact) {
+<a name="583" href="#583">583</a>                     carrSize++;
+<a name="584" href="#584">584</a>                 }
+<a name="585" href="#585">585</a>             }
+<a name="586" href="#586">586</a> 
+<a name="587" href="#587">587</a>             carr = <strong class="jxr_keyword">new</strong> Contact[carrSize];
 <a name="588" href="#588">588</a> 
-<a name="589" href="#589">589</a>             it = users.iterator();
-<a name="590" href="#590">590</a>             <strong class="jxr_keyword">int</strong> carrPos = 1;
-<a name="591" href="#591">591</a>             <strong class="jxr_keyword">while</strong> (it.hasNext()) {
-<a name="592" href="#592">592</a>                 User u = (User) it.next();
-<a name="593" href="#593">593</a> 
-<a name="594" href="#594">594</a>                 <strong class="jxr_keyword">if</strong> (u != primaryContact) {
-<a name="595" href="#595">595</a>                     Contact ct = getContactFromJAXRUser(u);
-<a name="596" href="#596">596</a>                     carr[carrPos] = ct;
-<a name="597" href="#597">597</a>                     carrPos++;
-<a name="598" href="#598">598</a>                 }
-<a name="599" href="#599">599</a>             }
-<a name="600" href="#600">600</a> 
-<a name="601" href="#601">601</a> 			bss.getBusinessService().addAll(Arrays.asList(barr));
-<a name="602" href="#602">602</a>             <strong class="jxr_keyword">if</strong> (carr.length&gt;0) {
-<a name="603" href="#603">603</a>                 cts.getContact().addAll(Arrays.asList(carr));
-<a name="604" href="#604">604</a>                 biz.setContacts(cts);
-<a name="605" href="#605">605</a>             }
-<a name="606" href="#606">606</a>             biz.setBusinessServices(bss);
-<a name="607" href="#607">607</a> 
-<a name="608" href="#608">608</a>             <em class="jxr_comment">// External Links</em>
-<a name="609" href="#609">609</a>             Iterator&lt;ExternalLink&gt; exiter = organization.getExternalLinks().iterator();
-<a name="610" href="#610">610</a>             DiscoveryURLs emptyDUs = <strong class="jxr_keyword">null</strong>;
-<a name="611" href="#611">611</a>             <strong class="jxr_keyword">boolean</strong> first = <strong class="jxr_keyword">true</strong>;
-<a name="612" href="#612">612</a>             <strong class="jxr_keyword">while</strong> (exiter.hasNext()) {
-<a name="613" href="#613">613</a>                 ExternalLink link = (ExternalLink) exiter.next();
-<a name="614" href="#614">614</a>                 <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Note: jUDDI adds its own discoverURL as the businessEntity* */</em>
-<a name="615" href="#615">615</a>                 <strong class="jxr_keyword">if</strong> (first) {
-<a name="616" href="#616">616</a>                     emptyDUs = objectFactory.createDiscoveryURLs();
-<a name="617" href="#617">617</a>                     biz.setDiscoveryURLs(emptyDUs);
-<a name="618" href="#618">618</a>                     first = false;
-<a name="619" href="#619">619</a>                 }
-<a name="620" href="#620">620</a>                 DiscoveryURL emptyDU = objectFactory.createDiscoveryURL();
-<a name="621" href="#621">621</a>                 emptyDUs.getDiscoveryURL().add(emptyDU);
-<a name="622" href="#622">622</a>                 emptyDU.setUseType(<span class="jxr_string">"businessEntityExt"</span>);
-<a name="623" href="#623">623</a> 				
-<a name="624" href="#624">624</a>                 <strong class="jxr_keyword">if</strong> (link.getExternalURI() != <strong class="jxr_keyword">null</strong>) {
-<a name="625" href="#625">625</a>                     emptyDU.setValue(link.getExternalURI());
-<a name="626" href="#626">626</a>                 }
-<a name="627" href="#627">627</a>             }
-<a name="628" href="#628">628</a> 			
-<a name="629" href="#629">629</a>           IdentifierBag idBag = getIdentifierBagFromExternalIdentifiers(organization.getExternalIdentifiers());
-<a name="630" href="#630">630</a>           <strong class="jxr_keyword">if</strong> (idBag!=<strong class="jxr_keyword">null</strong>) {
-<a name="631" href="#631">631</a>               biz.setIdentifierBag(idBag);
-<a name="632" href="#632">632</a>           }
-<a name="633" href="#633">633</a>           CategoryBag catBag = getCategoryBagFromClassifications(organization.getClassifications());
-<a name="634" href="#634">634</a>           <strong class="jxr_keyword">if</strong> (catBag!=<strong class="jxr_keyword">null</strong>) {
-<a name="635" href="#635">635</a>               biz.setCategoryBag(catBag);
-<a name="636" href="#636">636</a>           }
-<a name="637" href="#637">637</a> 			
-<a name="638" href="#638">638</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="639" href="#639">639</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="640" href="#640">640</a>         }
-<a name="641" href="#641">641</a>         <strong class="jxr_keyword">return</strong> biz;
-<a name="642" href="#642">642</a>     }
-<a name="643" href="#643">643</a> 
-<a name="644" href="#644">644</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="645" href="#645">645</a> <em class="jxr_javadoccomment">     *</em>
-<a name="646" href="#646">646</a> <em class="jxr_javadoccomment">     * Convert JAXR User Object to UDDI  Contact</em>
-<a name="647" href="#647">647</a> <em class="jxr_javadoccomment">     */</em>
-<a name="648" href="#648">648</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Contact getContactFromJAXRUser(User user)
-<a name="649" href="#649">649</a> 			<strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="650" href="#650">650</a> 		Contact ct = objectFactory.createContact();
-<a name="651" href="#651">651</a>         <strong class="jxr_keyword">if</strong> (user == <strong class="jxr_keyword">null</strong>) {
-<a name="652" href="#652">652</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="653" href="#653">653</a>         }
-<a name="654" href="#654">654</a> 
-<a name="655" href="#655">655</a> 		Address[] addarr = <strong class="jxr_keyword">new</strong> Address[0];
-<a name="656" href="#656">656</a> 		Phone[] phonearr = <strong class="jxr_keyword">new</strong> Phone[0];
-<a name="657" href="#657">657</a> 		Email[] emailarr = <strong class="jxr_keyword">new</strong> Email[0];
-<a name="658" href="#658">658</a> 		<strong class="jxr_keyword">try</strong> {
-<a name="659" href="#659">659</a> 			
-<a name="660" href="#660">660</a> 			<strong class="jxr_keyword">if</strong> (user.getPersonName() != <strong class="jxr_keyword">null</strong> &amp;&amp; user.getPersonName().getFullName() != <strong class="jxr_keyword">null</strong>) {
-<a name="661" href="#661">661</a> 				org.uddi.api_v3.PersonName pn = <strong class="jxr_keyword">new</strong> org.uddi.api_v3.PersonName();
-<a name="662" href="#662">662</a> 				pn.setValue(user.getPersonName().getFullName());
-<a name="663" href="#663">663</a> 				ct.getPersonName().add(pn);
-<a name="664" href="#664">664</a> 			}
-<a name="665" href="#665">665</a> 			
-<a name="666" href="#666">666</a> 			<strong class="jxr_keyword">if</strong> (user.getType() != <strong class="jxr_keyword">null</strong>) {
-<a name="667" href="#667">667</a>             ct.setUseType(user.getType());
-<a name="668" href="#668">668</a> 			}
-<a name="669" href="#669">669</a> 			<em class="jxr_comment">// Postal Address</em>
-<a name="670" href="#670">670</a>             Collection&lt;PostalAddress&gt; postc = user.getPostalAddresses();
-<a name="671" href="#671">671</a> 
-<a name="672" href="#672">672</a> 			addarr = <strong class="jxr_keyword">new</strong> Address[postc.size()];
-<a name="673" href="#673">673</a> 
-<a name="674" href="#674">674</a>             Iterator&lt;PostalAddress&gt; iterator = postc.iterator();
-<a name="675" href="#675">675</a> 			<strong class="jxr_keyword">int</strong> addarrPos = 0;
-<a name="676" href="#676">676</a> 			<strong class="jxr_keyword">while</strong> (iterator.hasNext()) {
-<a name="677" href="#677">677</a>                 PostalAddress post = (PostalAddress) iterator.next();
-<a name="678" href="#678">678</a> 				addarr[addarrPos] = ScoutJaxrUddiV3Helper.getAddress(post);
-<a name="679" href="#679">679</a> 				addarrPos++;
-<a name="680" href="#680">680</a>             }
-<a name="681" href="#681">681</a> 			<em class="jxr_comment">// Phone Numbers</em>
-<a name="682" href="#682">682</a>             Collection ph = user.getTelephoneNumbers(<strong class="jxr_keyword">null</strong>);
-<a name="683" href="#683">683</a> 
-<a name="684" href="#684">684</a> 			phonearr = <strong class="jxr_keyword">new</strong> Phone[ph.size()];
-<a name="685" href="#685">685</a> 
-<a name="686" href="#686">686</a>             Iterator it = ph.iterator();
-<a name="687" href="#687">687</a> 			<strong class="jxr_keyword">int</strong> phonearrPos = 0;
-<a name="688" href="#688">688</a> 			<strong class="jxr_keyword">while</strong> (it.hasNext()) {
-<a name="689" href="#689">689</a>                 TelephoneNumber t = (TelephoneNumber) it.next();
-<a name="690" href="#690">690</a> 				Phone phone = objectFactory.createPhone();
-<a name="691" href="#691">691</a>                 String str = t.getNumber();
-<a name="692" href="#692">692</a>                 log.debug(<span class="jxr_string">"Telephone="</span> + str);
-<a name="693" href="#693">693</a> 				
-<a name="694" href="#694">694</a> 				<em class="jxr_comment">// FIXME: If phone number is null, should the phone </em>
-<a name="695" href="#695">695</a> 				<em class="jxr_comment">// not be set at all, or set to empty string?</em>
-<a name="696" href="#696">696</a> 				<strong class="jxr_keyword">if</strong> (str != <strong class="jxr_keyword">null</strong>) {
-<a name="697" href="#697">697</a> 					phone.setValue(str);
-<a name="698" href="#698">698</a> 				} <strong class="jxr_keyword">else</strong> {
-<a name="699" href="#699">699</a> 					phone.setValue(<span class="jxr_string">""</span>);
-<a name="700" href="#700">700</a> 				}
-<a name="701" href="#701">701</a> 
-<a name="702" href="#702">702</a> 				phonearr[phonearrPos] = phone;
-<a name="703" href="#703">703</a> 				phonearrPos++;
-<a name="704" href="#704">704</a>             }
-<a name="705" href="#705">705</a> 
-<a name="706" href="#706">706</a> 			<em class="jxr_comment">// Email Addresses</em>
-<a name="707" href="#707">707</a>             Collection ec = user.getEmailAddresses();
-<a name="708" href="#708">708</a> 
-<a name="709" href="#709">709</a> 			emailarr = <strong class="jxr_keyword">new</strong> Email[ec.size()];
-<a name="710" href="#710">710</a> 
-<a name="711" href="#711">711</a>             Iterator iter = ec.iterator();
-<a name="712" href="#712">712</a> 			<strong class="jxr_keyword">int</strong> emailarrPos = 0;
-<a name="713" href="#713">713</a> 			<strong class="jxr_keyword">while</strong> (iter.hasNext()) {
-<a name="714" href="#714">714</a>                 EmailAddress ea = (EmailAddress) iter.next();
-<a name="715" href="#715">715</a> 				Email email = objectFactory.createEmail();
-<a name="716" href="#716">716</a> 				
-<a name="717" href="#717">717</a> 				<strong class="jxr_keyword">if</strong> (ea.getAddress() != <strong class="jxr_keyword">null</strong>) {
-<a name="718" href="#718">718</a> 					email.setValue(ea.getAddress());
-<a name="719" href="#719">719</a> 				}
-<a name="720" href="#720">720</a> 				<em class="jxr_comment">// email.setText( ea.getAddress() );</em>
-<a name="721" href="#721">721</a> 				
-<a name="722" href="#722">722</a> 				<strong class="jxr_keyword">if</strong> (ea.getType() != <strong class="jxr_keyword">null</strong>) {
-<a name="723" href="#723">723</a>                 email.setUseType(ea.getType());
-<a name="724" href="#724">724</a>             }
-<a name="725" href="#725">725</a> 
-<a name="726" href="#726">726</a> 				emailarr[emailarrPos] = email;
-<a name="727" href="#727">727</a> 				emailarrPos++;
-<a name="728" href="#728">728</a> 			}
-<a name="729" href="#729">729</a> 			ct.getAddress().addAll(Arrays.asList(addarr));
-<a name="730" href="#730">730</a> 			ct.getPhone().addAll(Arrays.asList(phonearr));
-<a name="731" href="#731">731</a> 			ct.getEmail().addAll(Arrays.asList(emailarr));
-<a name="732" href="#732">732</a> 		} <strong class="jxr_keyword">catch</strong> (Exception ud) {
-<a name="733" href="#733">733</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Apache JAXR Impl:"</span>, ud);
-<a name="734" href="#734">734</a>         }
-<a name="735" href="#735">735</a>         <strong class="jxr_keyword">return</strong> ct;
-<a name="736" href="#736">736</a>     }
-<a name="737" href="#737">737</a> 
-<a name="738" href="#738">738</a> 	<strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> String getToken(String tokenstr) {
-<a name="739" href="#739">739</a> 		<em class="jxr_comment">// Token can have the value NULL which need to be converted into null</em>
-<a name="740" href="#740">740</a> 		<strong class="jxr_keyword">if</strong> (tokenstr.equals(<span class="jxr_string">"NULL"</span>))
-<a name="741" href="#741">741</a> 			tokenstr = <span class="jxr_string">""</span>;
-<a name="742" href="#742">742</a>       <strong class="jxr_keyword">return</strong> tokenstr;
-<a name="743" href="#743">743</a>    }
-<a name="744" href="#744">744</a> 
-<a name="745" href="#745">745</a> 	<strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> String getUseType(String accessuri) {
-<a name="746" href="#746">746</a>        String acc = accessuri.toLowerCase();
-<a name="747" href="#747">747</a> 		String uri = <span class="jxr_string">"other"</span>;
-<a name="748" href="#748">748</a> 		<strong class="jxr_keyword">if</strong> (acc.startsWith(<span class="jxr_string">"http:"</span>))
-<a name="749" href="#749">749</a> 			uri = <span class="jxr_string">"http:"</span>;
-<a name="750" href="#750">750</a> 		<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (acc.startsWith(<span class="jxr_string">"https:"</span>))
-<a name="751" href="#751">751</a> 			uri = <span class="jxr_string">"https:"</span>;
-<a name="752" href="#752">752</a> 		<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (acc.startsWith(<span class="jxr_string">"ftp:"</span>))
-<a name="753" href="#753">753</a> 			uri = <span class="jxr_string">"ftp:"</span>;
-<a name="754" href="#754">754</a> 		<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (acc.startsWith(<span class="jxr_string">"phone:"</span>))
-<a name="755" href="#755">755</a> 			uri = <span class="jxr_string">"phone:"</span>;
-<a name="756" href="#756">756</a> 
-<a name="757" href="#757">757</a>        <strong class="jxr_keyword">return</strong> uri;
-<a name="758" href="#758">758</a>    }
-<a name="759" href="#759">759</a>     
-<a name="760" href="#760">760</a> 	<em class="jxr_javadoccomment">/**</em>
-<a name="761" href="#761">761</a> <em class="jxr_javadoccomment">     * According to JAXR Javadoc, there are two types of classification, internal and external and they use the Classification, Concept,     </em>
-<a name="762" href="#762">762</a> <em class="jxr_javadoccomment">     * and ClassificationScheme objects.  It seems the only difference between internal and external (as related to UDDI) is that the</em>
-<a name="763" href="#763">763</a> <em class="jxr_javadoccomment">     * name/value pair of the categorization is held in the Concept for internal classifications and the Classification for external (bypassing</em>
-<a name="764" href="#764">764</a> <em class="jxr_javadoccomment">     * the Concept entirely).</em>
-<a name="765" href="#765">765</a> <em class="jxr_javadoccomment">     * </em>
-<a name="766" href="#766">766</a> <em class="jxr_javadoccomment">     * The translation to UDDI is simple.  Relevant objects have a category bag which contains a bunch of KeyedReferences (name/value pairs).  </em>
-<a name="767" href="#767">767</a> <em class="jxr_javadoccomment">     * These KeyedReferences optionally refer to a tModel that identifies the type of category (translates to the ClassificationScheme key).  If</em>
-<a name="768" href="#768">768</a> <em class="jxr_javadoccomment">     * this is set and the tModel doesn't exist in the UDDI registry, then an invalid key error will occur when trying to save the object.</em>
-<a name="769" href="#769">769</a> <em class="jxr_javadoccomment">     * </em>
-<a name="770" href="#770">770</a> <em class="jxr_javadoccomment">     * @param classifications classifications to turn into categories</em>
-<a name="771" href="#771">771</a> <em class="jxr_javadoccomment">     * @throws JAXRException</em>
-<a name="772" href="#772">772</a> <em class="jxr_javadoccomment">     */</em>
-<a name="773" href="#773">773</a> 	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> CategoryBag getCategoryBagFromClassifications(Collection classifications) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="774" href="#774">774</a>     	<strong class="jxr_keyword">try</strong> {
-<a name="775" href="#775">775</a> 			<strong class="jxr_keyword">if</strong> (classifications == <strong class="jxr_keyword">null</strong> || classifications.size()==0)
-<a name="776" href="#776">776</a> 				<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="777" href="#777">777</a>     		
-<a name="778" href="#778">778</a>     		<em class="jxr_comment">// Classifications</em>
-<a name="779" href="#779">779</a> 			CategoryBag cbag = objectFactory.createCategoryBag();
-<a name="780" href="#780">780</a> 			Iterator classiter = classifications.iterator();
-<a name="781" href="#781">781</a> 			<strong class="jxr_keyword">while</strong> (classiter.hasNext()) {
-<a name="782" href="#782">782</a> 				Classification classification = (Classification) classiter.next();
-<a name="783" href="#783">783</a> 				<strong class="jxr_keyword">if</strong> (classification != <strong class="jxr_keyword">null</strong> ) {
-<a name="784" href="#784">784</a> 					KeyedReference keyr = objectFactory.createKeyedReference();
-<a name="785" href="#785">785</a> 					cbag.getKeyedReference().add(keyr);
-<a name="786" href="#786">786</a> 	
-<a name="787" href="#787">787</a> 					InternationalStringImpl iname = <strong class="jxr_keyword">null</strong>;
-<a name="788" href="#788">788</a> 					String value = <strong class="jxr_keyword">null</strong>;
-<a name="789" href="#789">789</a> 					ClassificationScheme scheme = classification.getClassificationScheme();
-<a name="790" href="#790">790</a>                     <strong class="jxr_keyword">if</strong> (scheme==<strong class="jxr_keyword">null</strong> || (classification.isExternal() &amp;&amp; classification.getConcept()==<strong class="jxr_keyword">null</strong>)) {
-<a name="791" href="#791">791</a>                         <em class="jxr_comment">/*</em>
-<a name="792" href="#792">792</a> <em class="jxr_comment">                        * JAXR 1.0 Specification: Section D6.4.4</em>
-<a name="793" href="#793">793</a> <em class="jxr_comment">                        * Specification related tModels mapped from Concept may be automatically</em>
-<a name="794" href="#794">794</a> <em class="jxr_comment">                        * categorized by the well-known uddi-org:types taxonomy in UDDI (with</em>
-<a name="795" href="#795">795</a> <em class="jxr_comment">                        * tModelKey uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4) as follows:</em>
-<a name="796" href="#796">796</a> <em class="jxr_comment">                        * The keyed reference is assigned a taxonomy value of specification.</em>
-<a name="797" href="#797">797</a> <em class="jxr_comment">                        */</em>
-<a name="798" href="#798">798</a>                         keyr.setTModelKey(UDDI_ORG_TYPES);
-<a name="799" href="#799">799</a>                         keyr.setKeyValue(<span class="jxr_string">"specification"</span>); 

[... 516 lines stripped ...]


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message