* @param errorInformation
*/
public static void sendError(HttpServletResponse response, int errorCode, int errorType, String messageId, String errorText, String errorInformation) {
response.setContentType("application/json");
RequestError error=new RequestError(errorType, messageId, errorText, errorInformation);
ObjectMapper mapper=new ObjectMapper();
String jsonResponse=null;
try {
jsonResponse = "{\"requestError\":"+mapper.writeValueAsString(error)+"}";