* @param element - The element that the header should be added to
*/
public static void addSOAPModuleElements(OMFactory omFactory, ArrayList list, OMNamespace wsoap,
OMElement element) {
for (int i = 0; i < list.size(); i++) {
SOAPModuleMessage soapModuleMessage = (SOAPModuleMessage) list.get(i);
OMElement soapModuleElement =
omFactory.createOMElement(WSDL2Constants.ATTRIBUTE_MODULE, wsoap);
soapModuleElement.addAttribute(omFactory.createOMAttribute(
WSDL2Constants.ATTRIBUTE_REF, null, soapModuleMessage.getUri()));
element.addChild(soapModuleElement);
}
}