code: protected String determineDatabaseType() throws HandlerException {
          String dbName = null;
          try (Connection conn = getConnection()) {
              dbName = conn.getMetaData().getDatabaseProductName();
          } catch (SQLException e) {
              throw new HandlerException("Exception occured while getting DB Name",
                      DatabaseAuditHandler.class, e);
          }
          return dbName;
      }
docs: Determine database type using database metadata product name.
  
  @return the string
  @throws HandlerException
  the handler exception