{
UnifiedHandlerChainsMetaData uHandlerChains = new UnifiedHandlerChainsMetaData();
List<ServiceReferenceHandlerChainMetaData> srHandlerChainList = srHandlerChains.getHandlers();
for (ServiceReferenceHandlerChainMetaData srHandlerChain : srHandlerChainList)
{
UnifiedHandlerChainMetaData uHandlerChain = new UnifiedHandlerChainMetaData();
uHandlerChain.setServiceNamePattern(srHandlerChain.getServiceNamePattern());
uHandlerChain.setPortNamePattern(srHandlerChain.getPortNamePattern());
uHandlerChain.setProtocolBindings(srHandlerChain.getProtocolBindings());
List<ServiceReferenceHandlerMetaData> srHandlerChainHandlers = srHandlerChain.getHandler();
Iterator<ServiceReferenceHandlerMetaData> it = srHandlerChainHandlers.iterator();
while (it.hasNext())
{
ServiceReferenceHandlerMetaData srHandlerMetaData = it.next();
UnifiedHandlerMetaData uHandlerMetaData = getUnifiedHandlerMetaData(srHandlerMetaData);
uHandlerChain.addHandler(uHandlerMetaData);
}
uHandlerChains.addHandlerChain(uHandlerChain);
}
result.setHandlerChains(uHandlerChains);
}