URL url = getXBayaPropertiesURL();
properties.load(url.openStream());
jcrUserName = (String)properties.get(JCR_USER);
jcrPassword = (String) properties.get(JCR_PASS);
jcrURL = (String) properties.get(JCR_URL);
jcrComponentRegistry = new JCRComponentRegistry(jcrUserName,jcrPassword);
return jcrComponentRegistry.getRegistry();
} catch (RegistryException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (IOException e) {
e.printStackTrace();