protected ReturnMessage handleException(UniqueConstraintsException exception) {
    String title =
        getMessages()
            .getMessage(
                GeneralProperties.class.getName()
                    + "."
                    + GeneralProperties.getGeneralTitle(ReturnMessageEnum.ERROR));
    String message = applicationMessages.getMessage(exception.getKey());

    return new ReturnMessage(ReturnMessageEnum.ERROR, title, message);
  }
  protected ReturnMessage handleException(ServiceException exception) {
    String title =
        getMessages()
            .getMessage(
                GeneralProperties.class.getName()
                    + "."
                    + GeneralProperties.getGeneralTitle(exception.getType()).name());
    String message = applicationMessages.getMessage(exception.getClass().getName());

    return new ReturnMessage(exception.getType(), title, message);
  }