if (hasSitePermission(currentModule.getPermissionName(), site.getSiteKey())) {
session.setAttribute(CLASS_NAME + "configJahia", Boolean.FALSE);
if ("search".equals(operation)) {
// Use response wrapper to ensure correct handling of Application fields output to the response
// @todo is this still necessary with Pluto wrapper in effect ?
currentModule.service(new ServletIncludeRequestWrapper(request), new ServletIncludeResponseWrapper(response, true, SettingsBean.getInstance().getCharacterEncoding()));
} else {
currentModule.service(request, response);
}
}
}