Element wsdlXML = XmlUtils.createElement(doc, DescriptorConstants.WSDL_QNAME);
XmlUtils.setElement(wsdlXML, DescriptorConstants.WSDL_FILE_QNAME, wsdl.getWsdlPath());
XmlUtils.setElement(wsdlXML, DescriptorConstants.WSDL_PORT_TYPE_QNAME, wsdl.getWsdlPortType());
root.appendChild(wsdlXML);
ResourceIdFactory factory = def.getResourceIdFactory();
if (factory != null)
XmlUtils.setElement(root, DescriptorConstants.JAVA_ID_FACTORY_QNAME, factory.getClass().getName());
XmlUtils.setElement(root, DescriptorConstants.JAVA_RESOURCE_QNAME, def.getResourceClass().getName());
Iterator i = def.getCapabilityDefinitions().iterator();