4 i j kl m n o p qr s tu v wx i yz {| }~         #       }{  6  =     "    "      l l l l l l l  qi    q q y {  ~ {                             l!"# $%& '( ) *+ ,-.DOILjava/lang/String; ConstantValueSAVED/PENDING0GETIPUTPOSTDELETECONNECTIONS_PER_ROUTEminimalMetadataFileSTATUSSUCCESSusernamepasswordbaseURL httpClient1Lorg/apache/http/impl/client/CloseableHttpClient;encodedAuthStr[BminimalMetadataDocLorg/w3c/dom/Document;originalDefaultSiteCodecurrentDefaultSiteCodelog Lorg/apache/commons/logging/Log;9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)VCodeLineNumberTableLocalVariableTablethis,Ledu/ucsb/nceas/osti_elink/OSTIElinkService;authentication StackMapTablemintIdentifier&(Ljava/lang/String;)Ljava/lang/String;eLjava/lang/Exception;siteCode identifierminimalMetadatareponsedocstatusid1 Exceptions getMetadatadoigetMetadataFromOstiIdostiId8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;&Ljava/io/UnsupportedEncodingException;numFoundurlresponsetypemetadata setMetadata doiPrefix metadataXMLnewMetadataXML getStatusaddOrReplaceOstiIdToXMLMetadatarecordLorg/w3c/dom/Node;ostiNodenewTextLorg/w3c/dom/Text;recordsLorg/w3c/dom/NodeList;childi osti_id_nodechildren osti_id_nodes2createThreadSafeClient3()Lorg/apache/http/impl/client/CloseableHttpClient;poolingConnManager>Lorg/apache/http/impl/conn/PoolingHttpClientConnectionManager;client sendRequest(ILjava/lang/String;)[B requestTypeuri)(ILjava/lang/String;Ljava/lang/String;)[BmyEntity%Lorg/apache/http/entity/StringEntity;Lorg/apache/http/HttpResponse;entityLorg/apache/http/HttpEntity;0Lorg/apache/http/client/ClientProtocolException;Ljava/io/IOException; requestBodyrequest/Lorg/apache/http/client/methods/HttpUriRequest;body3buildMinimalMetadatadBuilder#Ljavax/xml/parsers/DocumentBuilder;0Ljavax/xml/parsers/ParserConfigurationException;Lorg/xml/sax/SAXException; dbFactory*Ljavax/xml/parsers/DocumentBuilderFactory;isLjava/io/InputStream;ee metadataStr4 5modifySiteCode(Ljava/lang/String;)Vnodenodes. removeDOI getOstiIdprefix generateDOM([B)Lorg/w3c/dom/Document;Ljava/io/ByteArrayInputStream;bytesgetElementValue<(Lorg/w3c/dom/Document;Ljava/lang/String;)Ljava/lang/String; elementNamevaluegetAttributeValueN(Lorg/w3c/dom/Document;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;Lorg/w3c/dom/Element; attributeName serialize*(Lorg/w3c/dom/Document;)Ljava/lang/String;domImplementation$Lorg/w3c/dom/ls/DOMImplementationLS; lsSerializerLorg/w3c/dom/ls/LSSerializer;()V SourceFileOSTIElinkService.java f "https://www.osti.gov/elink/2416api test 67 89 #$java/lang/StringBuilder :;: <7 ISO-8859-1= >? @AB CD ;*edu/ucsb/nceas/osti_elink/OSTIElinkService (, JOSTIElinkService.mintIdentifier - the response from the OSTI service is: java/lang/String EF GH STjava/lang/Exception,edu/ucsb/nceas/osti_elink/OSTIElinkException*OSTIElinkService.mintIdentifier - Error: L WX IJdoi:>OSTIElinkService.mintIdentifier - the generated identifier is KH osti_id P?=L MNO P$java/io/UnsupportedEncodingException>OSTIElinkService.getMetadata - couldn't encode the query url: Q7AOSTIElinkService.getMetadata - the url sending to the service is ()2OSTIElinkService.getMetadata - the reponse for id  is 4edu/ucsb/nceas/osti_elink/OSTIElinkNotFoundExceptionUOSTIElinkService.getMetadata - the reponse is blank. So we can't find the identifier , which type is RS=OSTIElinkService.getMetadata - can't get the metadata for id  since numfound [\0>OSTIElinkService.getMetadata - OSTI can't find the identifier KOSTIElinkService.getMetadata - the given identifier can't be null or blank. Q EOSTIElinkService.setMetadata - the new xml metadata with the osti id  for the doi identifier  is: YOSTIElinkService.setMetadata - the response from the OSTI service to set metadata for id  is: EOSTIElinkService.setMetadata - can't get the status of the repsonse: since: T7 UH'OSTIElinkService.setMetadata - Error: 5OSTIElinkService.getStatus - the metadata of the DOI  can't be found. @V+OSTIElinkService.getStatus - the status of  is ^OSTIElinkService.addOrReplaceOstiIdToXMLMetadata - the metadata part mustn't be null or blank.sOSTIElinkService.addOrReplaceOstiIdToXMLMetadata - the metadata part must be a valid xml string. But the string is # And it can't be processed because 1 WX2 YZODOIService.addOrReplaceOstiIdToXMLMetadata - the metadata must only one record. [\ ]^ _` ab cd ef gh ijorg/w3c/dom/Node kd lf_DOIService.addOrReplaceOstiIdToXMLMetadata - the metadata shouldn't have more than one osti id. _`+?,@-+A:!:):#YYB+C-%*DEF:G0=YYH+?,C-@#YYB+C-% #YI%-HK6"nHKMl .:Dqf M $:[ {    ^ K b#%B# # *+,J:*-K:YLM+N **:YO+PY ::!:*&':5: YQYR ST )*&#YYUY%"F@My|f 0 M||y* 1"#fM*+VN-##YYW+X%-Y!:*Z&FMY[+\,-," ,5@d4ffd^ 51 ,# 7,,   #Y]%N,Y!N-:#YY^,_`%-/a:b]-Za:b #Yc%d:-/e:-+f:gWhiWvbad:j:6b<d:k -+f: m nW  #Yo%-p$'"~$')DQ[eoz !"#$&()*+,- ./*%2(325)(.$oM  (EQH777[ 7  )2!!: "!> # #$d qYrKs*tuL*v*w+>?@AB%& '()F*,L *+#(,v4:Yx,-*XyY,z:v{Y,|:-h-}a~Y-:{HY,:-:-}3~Y-:Y,: #Y%YY*:*:: :!:#Y%:#Y%"~WXY<[F\I^S_^`jatbwefghilmoqrsuvw x~z{"|$}1z j -. -. / 01 2$ 344*4+44156D7 <8 -- SB9N:#; lM*.*N:::*-***' Y* -f:#YY%:#YY%:#YY%-P-D:8-1:::--:  -"N#YY-%++   *+* *  ** *pM, [^[[ n %/=[^`4DLZbjf %9<=`>?3@ABCD3lljEn^FGHI`J`: OG FGHG FGGG B:#KL *YM*aN-bh-d:j:6bDd:k(*+f:mnW*+  #Y%,ç : , F%.=HS_pux~R_H01M%YM.PxN-1O!"!F DG# PVY*-+L**+**++}`KY*-*"*9TV89QN++   #Y%,,  s,0M+0L+,Aa,Y,M++,,}`NY,-+---  A*+V:Y!:*/'NY-+-Y+\---J,16>G[j>7 -R >@=# STW~LY*MN-:,L`M#YY,%M#YY,%M#YY,%+>]6   >?]^|R BU @A<= >??^3~V|I^J^:#WX N+,,  +,a:bsd:j:6bQd:k5 NY,\-- -:&'())*3+<,K-V.a/l01,6\ V=?Z3fM<]zNYZ5?!"!S[\+:+T,P,  D-@-  4+,a:b!d::- :Y-,\-* BCD'E0F:GDHKIXLNRDMK ]0(NY^ZX _`_*L+M,*W XY  abcdef! ųWgh