newConsumes.setServiceName(XmlDescriptorHelper
.getServiceName(childElement));
consumes.add(newConsumes);
} else if (XmlDescriptorHelper.isElement(childElement,
JBI_NAMESPACE, "provides")) {
Provides newProvides = new Provides();
newProvides.setEndpointName(XmlDescriptorHelper
.getEndpointName(childElement));
newProvides.setInterfaceName(XmlDescriptorHelper
.getInterfaceName(childElement));
newProvides.setServiceName(XmlDescriptorHelper
.getServiceName(childElement));
provides.add(newProvides);
}
}
}