ServletContext servletContext, RequestModuleMapping moduleMapping) {
final ModuleManagementFacade moduleManagementFactory = WebServletUtils.getModuleManagementFacade(servletContext);
HttpServletRequest wrappedRequest = null;
if (moduleManagementFactory != null) {
HttpRequestWrapperFactory factory = ObjectUtils.cast(moduleManagementFactory.getBean(WebConstants.REQUEST_WRAPPER_FACTORY_BEAN_NAME), HttpRequestWrapperFactory.class);
if (factory != null) {
wrappedRequest = factory.getWrappedRequest(request, servletContext, moduleMapping);
} else {
wrappedRequest = request;
}
} else {
wrappedRequest = request;