Error handleEntityNotFoundException(Exception ex, HttpServletRequest request, HttpServletResponse response) {
String errorId = LoggingUtil.generateErrorId();
String errorMessage = generateLogErrorMessage(errorId) + " - No entity found";
log.error(errorMessage, ex);
Error error = new Error();
error.setHttpStatusCode("400");
error.setDeveloperMessage(messageSource.getMessage("api.entityNotFoundException.developerMessage=", null, request.getLocale()));
error.setUserMessage(messageSource.getMessage("api.entityNotFoundException.userMessage", null, request.getLocale()));
error.setMoreInfo("support@knappsack.com");
error.setErrorId(errorId);
response.setStatus(400);
return error;
}