code: public DataAccessException translateExceptionIfPossible(RuntimeException ex) {
          if(ex instanceof GatewayException) {
              return exceptionConverter.convert(ex);
          }
  
          return null;
      }
docs: /*
  @see org.springframework.dao.support.PersistenceExceptionTranslator#translateExceptionIfPossible(java.lang.RuntimeException)