.getFileName()).toString());
}
JAXBElement<?> o = (JAXBElement<?>)u.unmarshal(handlerFileURL);
HandlerChainsType handlerChainsType = (HandlerChainsType) o.getValue();
if (null == handlerChainsType || handlerChainsType.getHandlerChain().size() == 0) {
throw new WebServiceException(BUNDLE
.getString("CHAIN_NOT_SPECIFIED_EXC"));
}
chain = new ArrayList<Handler>();
for (HandlerChainType hc : handlerChainsType.getHandlerChain()) {
//Only add handlers if <port-name-pattern> is not presented or is matched.
//TODO: match the namespace, match the wild card etc. JSR-181, Appendix B.
if (hc.getPortNamePattern() != null && endpointName != null) {
String portNamePattern = hc.getPortNamePattern();
String localPart = portNamePattern.substring(portNamePattern.indexOf(':') + 1,