public DeployDocument getDeploymentDescriptor() { if (_dd == null) { File ddLocation = new File(_duDirectory, "deploy.xml"); if (!ddLocation.exists()) { ddLocation = new File(_duDirectory, "bpel-deploy.xml"); } try { XmlOptions options = new XmlOptions(); HashMap otherNs = new HashMap(); otherNs.put("http://ode.fivesight.com/schemas/2006/06/27/dd", "http://www.apache.org/ode/schemas/dd/2007/03"); options.setLoadSubstituteNamespaces(otherNs); _dd = DeployDocument.Factory.parse(ddLocation, options); } catch (Exception e) { throw new ContextException("Couldn't read deployment descriptor at location " + ddLocation.getAbsolutePath(), e); } } return _dd; }
public DeployDocument getDeploymentDescriptor() { if (_dd == null) { File ddLocation = new File(_duDirectory, "deploy.xml"); try { XmlOptions options = new XmlOptions(); HashMap otherNs = new HashMap(); otherNs.put("http://ode.fivesight.com/schemas/2006/06/27/dd", "http://www.apache.org/ode/schemas/dd/2007/03"); options.setLoadSubstituteNamespaces(otherNs); _dd = DeployDocument.Factory.parse(ddLocation, options); } catch (Exception e) { throw new ContextException("Couldn't read deployment descriptor at location " + ddLocation.getAbsolutePath(), e); } } return _dd; }