//Ensure the proper encoding of request parameters
request.setCharacterEncoding(CHARSET);
// Wrap the response object
response = new ServletResponseCharacterEncoding( (HttpServletRequest) request, (HttpServletResponse)response);
//Handling the language selection
if(request instanceof HttpServletRequest) {