code: @Override
      public boolean validConnection(final String url, final String user,
              final String pass) throws DBConnectionFailure {
          Connection c = null;
          try {
              if (getDatabaseTypeForURL(url) == null) {
                  // Unknown database types are not considered valid
                  return false;
              }
              c = getConnection(url, user, pass);
              return true;
          } catch (SQLException e) {
              Throwable originalSqlException = getFirstCause(e);
              throw new DBConnectionFailure(url,
                      originalSqlException.getMessage(),
                      originalSqlException);
          } finally {
              if (c != null) {
                  try {
                      c.close();
                  } catch (SQLException e) {}
              }
          }
  
      }
docs: {@inheritDoc}