throws IOException, ServletException {
String attributeName = ModuleHttpServiceInvoker.class.getName()+ "."+ moduleMapping.getModuleName();
Object attribute = context.getAttribute(attributeName);
HttpServiceInvoker invoker = ObjectUtils.cast(attribute, HttpServiceInvoker.class);
if (logger.isDebugEnabled()) {
if (invoker != null) {
logger.debug("Invoker for attribute '" + attributeName + "': " + invoker);
}
else {
if (logger.isDebugEnabled()) logger.debug("No invoker found for attribute '" + attributeName);
}
}
if (invoker != null) {
HttpServletRequest wrappedRequest = wrappedRequest(request, context, moduleMapping, applicationId);
invoker.invoke(wrappedRequest, response, chain);
}
else {
chain.doFilter(request, response);
}
}