code: private String determineDatabaseProductName(Connection conn) {
          try {
              final String databaseProductName = conn.getMetaData().getDatabaseProductName().toLowerCase();
              LOGGER.debug("Database product: {}", databaseProductName);
              return databaseProductName;
          } catch (SQLException se) {
              LOGGER.warn("Problem determining database product!", se);
              return null;
          }
      }
docs: Tries to determine the product name of the database.
  
  @param conn the database connection
  @return the product name of the database if successful, {@code null} else