public static String [ ] getDatastoreName ( String pathManifest ) throws InitializationException { String [ ] datastoreName = { "" } ; try { Document document = getDocument ( pathManifest ) ; // Search for the limit properties and connectorName Object result = getResult ( document , "//DataStores/DataStoreName/text()" ) ; datastoreName = new String [ ( ( NodeList ) result ) . getLength ( ) ] ; for ( int i = 0 ; i < ( ( NodeList ) result ) . getLength ( ) ; i ++ ) { datastoreName [ i ] = ( ( NodeList ) result ) . item ( i ) . getNodeValue ( ) ; } } catch ( SAXException | XPathExpressionException | IOException | ParserConfigurationException e ) { String msg = "Impossible to read DataStoreName in Manifest with the connector configuration." + e . getCause ( ) ; LOGGER . error ( msg ) ; throw new InitializationException ( msg , e ) ; } return datastoreName ; }
Recovered the datastoreName form Manifest .