@Override public String processPostDelete(Map<String, Object> requestParams) { String token = (String) requestParams.get("token"); User user = new User(); try { user.setEmail((String) requestParams.get("email")); user.setPassword((String) requestParams.get("password")); ticketService.delete(token, user); JsonObject responseJson = new JsonObject(); responseJson.addProperty("success", true); responseJson.addProperty("token", token); return responseJson.toString(); } catch (ServiceException e) { LOGGER.warn(e.getMessage()); return createErrorJSONResponse(e.getMessage()); } catch (DaoException e) { LOGGER.error(e.getMessage(), e); return createErrorJSONResponse(e.getMessage()); } }