Connector result = null;
try {
if (serviceXmlFile != null && serviceXmlFile.exists()) {
xmlStream = serviceXmlFile.openStream();
result = (new RaParser()).parse(xmlStream);
if (result == null)
throw new DeploymentUnitProcessingException("Failed to parse service xml [" + serviceXmlFile + "]");
}
File root = deploymentRoot.getPhysicalFile();
URL url = root.toURI().toURL();