newConsumes.setServiceName(XmlDescriptorHelper
.getServiceName(childElement));
connection.setConsumes(newConsumes);
} else if (XmlDescriptorHelper.isElement(
childElement, JBI_NAMESPACE, "provider")) {
Provides newProvides = new Provides();
newProvides.setEndpointName(XmlDescriptorHelper
.getEndpointName(childElement));
newProvides.setInterfaceName(XmlDescriptorHelper
.getInterfaceName(childElement));
newProvides.setServiceName(XmlDescriptorHelper
.getServiceName(childElement));
connection.setProvides(newProvides);
}
}
}