private void processHandlerChains(NodeList handlerChainList, HandlerChainContainer ep)
throws SAXException {
for(int i=0; i<handlerChainList.getLength(); i++) {
WebServiceHandlerChain hc = new WebServiceHandlerChain();
Node handlerChain = handlerChainList.item(i);
Node child = handlerChain.getFirstChild();
while(child != null) {
if(WebServicesTagNames.SERVICE_NAME_PATTERN.equals(child.getLocalName())) {
hc.setServiceNamePattern(getAsQName(child));
}
if(WebServicesTagNames.PORT_NAME_PATTERN.equals(child.getLocalName())) {
hc.setPortNamePattern(getAsQName(child));
}
if(WebServicesTagNames.PROTOCOL_BINDINGS.equals(child.getLocalName())) {
hc.setProtocolBindings(child.getTextContent());
}
if(WebServicesTagNames.HANDLER.equals(child.getLocalName())) {
processHandlers(child, hc);
}
child = child.getNextSibling();