/** * Helper to retrieve a ResourceBundle wrapper from a store path. * * @param path String * @return ResourceBundle * @throws IOException */ private ResourceBundle getBundleFromPath(String path) throws IOException { ResourceBundle result = null; if (container.getSearchPath().hasDocument(path)) { InputStream is = container.getSearchPath().getDocument(path); try { result = new WebScriptPropertyResourceBundle(is, path); } finally { is.close(); } } return result; }
/** * Helper to retrieve a ResourceBundle wrapper from a store path. * * @param path String * @return ResourceBundle * @throws IOException */ private ResourceBundle getBundleFromPath(String path) throws IOException { ResourceBundle result = null; if (container.getSearchPath().hasDocument(path)) { InputStream is = container.getSearchPath().getDocument(path); try { result = new WebScriptPropertyResourceBundle(is, path); } finally { is.close(); } } return result; }
/** * Helper to retrieve a ResourceBundle wrapper from a store path. * * @param path * @return ResourceBundle * @throws IOException */ private ResourceBundle getBundleFromPath(String path) throws IOException { ResourceBundle result = null; if (container.getSearchPath().hasDocument(path)) { InputStream is = container.getSearchPath().getDocument(path); try { result = new WebScriptPropertyResourceBundle(is, path); } finally { is.close(); } } return result; }
input = this.container.getSearchPath().getDocument(configPath); if (input != null)
input = this.container.getSearchPath().getDocument(configPath); if (input != null)
input = this.container.getSearchPath().getDocument(configPath); if (input != null)