final Adapter toInvoke = ((ContextRootInfo) context).getAdapter();
// Ensure the Adapter isn't the ContainerMapper. It could be there
// is only one container/adapter currently active. If this is the
// case, it could cause recursion and blow the stack.
if (!"com.sun.enterprise.v3.services.impl.ContainerMapper".equals(toInvoke.getClass().getName())) {
toInvoke.service(req, res);
toInvoke.afterService(req, res);
return false;
}
}