boolean jbossHandlerResolver = handlerResolver instanceof HandlerResolverImpl;
if (jbossHandlerResolver) // knows about PRE and POST handlers
{
HandlerResolverImpl impl = (HandlerResolverImpl)handlerResolver;
impl.initHandlerChain(epConfigMetaData, HandlerType.PRE, clearExistingHandlers);
impl.initHandlerChain(epConfigMetaData, HandlerType.ENDPOINT, clearExistingHandlers);
impl.initHandlerChain(epConfigMetaData, HandlerType.POST, clearExistingHandlers);
List<Handler> preChain = impl.getHandlerChain(portInfo, HandlerType.PRE);
List<Handler> postChain = impl.getHandlerChain(portInfo, HandlerType.POST);
binding.setHandlerChain(postChain, HandlerType.POST);
binding.setHandlerChain(preChain, HandlerType.PRE);
}