4 y z {| } ~      " "  y    "      "  &   "      8  ? ""    %   " %      n n n n n n n  sy    s s {  ~ "  ~                        " " " !"# "$%&'( )*+,- . n/01 234 56 7 8 9:; y 9< =>  ?@ADOILjava/lang/String; ConstantValueOSTI_IDSAVEDBPENDINGCGETIPUTPOSTDELETECONNECTIONS_PER_ROUTEminimalMetadataFileSTATUSSUCCESSusernamepasswordbaseURL httpClient1Lorg/apache/http/impl/client/CloseableHttpClient;encodedAuthStr[BminimalMetadataDocLorg/w3c/dom/Document;originalDefaultSiteCodecurrentDefaultSiteCode propertiesLjava/util/Properties;log 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 identifierminimalMetadatareponsedocstatusidD 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_nodesEcreateThreadSafeClient3()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;bodyF setHeaders2(Lorg/apache/http/client/methods/HttpUriRequest;)V setGetHeadersbuildMinimalMetadatadBuilder#Ljavax/xml/parsers/DocumentBuilder;0Ljavax/xml/parsers/ParserConfigurationException;Lorg/xml/sax/SAXException; dbFactory*Ljavax/xml/parsers/DocumentBuilderFactory;isLjava/io/InputStream;ee metadataStrGHmodifySiteCode(Ljava/lang/String;)VnodenodesA removeDOI getOstiIdprefixparseOSTIidFromResponse 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;lsOutputLorg/w3c/dom/ls/LSOutput; stringWriterLjava/io/Writer;()V SourceFileOSTIElinkService.java v "https://www.osti.gov/elink/2416api test IJ KL +,java/lang/StringBuilder MN: OJ ISO-8859-1P QR STU VW F the minmal metadata is X YZthe base url is *edu/ucsb/nceas/osti_elink/OSTIElinkService 04JOSTIElinkService.mintIdentifier - the response from the OSTI service is: java/lang/String [ _`java/lang/Exception,edu/ucsb/nceas/osti_elink/OSTIElinkException*OSTIElinkService.mintIdentifier - Error: W cd \]doi:>OSTIElinkService.mintIdentifier - the generated identifier is  osti_id [?=^ _`a b$java/io/UnsupportedEncodingException>OSTIElinkService.getMetadata - couldn't encode the query url: cJAOSTIElinkService.getMetadata - the url sending to the service is 012OSTIElinkService.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 de=OSTIElinkService.getMetadata - can't get the metadata for id  since numfound gh0>OSTIElinkService.getMetadata - OSTI can't find the identifier KOSTIElinkService.getMetadata - the given identifier can't be null or blank. \ 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: fJ gZ'OSTIElinkService.setMetadata - Error:  5OSTIElinkService.getStatus - the metadata of the DOI  can't be found. Sh+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 D ijE klODOIService.addOrReplaceOstiIdToXMLMetadata - the metadata must only one record. mn op qr st uv wx yz {|org/w3c/dom/Node }v ~x_DOIService.addOrReplaceOstiIdToXMLMetadata - the metadata shouldn't have more than one osti id. kl--- '?YY@+A,B-+C:$:):&YYD+E-(*FGH:I0?YYJ+A,E-B&YYD+E-( &YK(-HK8%nHKMl .:Dqf M $:[{^ K b# %B#  & *+,L:*-M:YNO+P** :YQ+R"Y#::$:*)*:5: YS"Y#T UV ,-&&YYW"Y#(%F@My|f 0  M||y*  1" &fM*+XN-#&YYY+Z(-[$:*\)HMY]+^,," ,5@d4ff d^51 , & 7,,  &Y_(N,[$N-:&YY`,ab(-1c:d]-\c:d &Ye(f:-1g:-+h:iWjkWvdaf:l:6d<f:m -+h: o pW  &Yq(-r$'%~  $' )DQ[eoz !"#$% &'"%*(+2-)(.$ !oM"#  ! ($E%Q&H'#777[(#7   )2)): *)>  & +,d sYtKu*vwL*x*y+6789:-. /01F*, D 23 &04g:Yz,0d{Y,|:*}~Y,:- -Y-:~*TY,:- -Y-:* Y,:* &Y(:*:: :!:&Y(:&Y( !OPQ<SFTLUOWYXdYpZz\]_`abdeghikmopqrxtu v wyz p 56 567 89 : ;23<=>D? <@** "BANB &CDEDF lM*.*N:::*-**** Y* f:&YY(:&YY(:&YY(-P-D:8-1:::--:  -"N&YY-(++  *+* *  ** *rM, [^[[ n %/=[^`4DLZbjf %9GH`IJ;KLMNO;lljPn^QRST`U`B OR FRHR QRRR BB &VW *YM*cN-dh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