code: public List<Schema> getSchemas(final String catalog, final String schemaPattern)
              throws SQLException {
          final List<Schema> list = new ArrayList<>();
          try (ResultSet results = databaseMetadata.getSchemas(catalog, schemaPattern)) {
              if (results != null) {
                  bind(results, Schema.class, list);
              }
          }
          return list;
      }
docs: Invokes {@link DatabaseMetaData#getSchemas(java.lang.String, java.lang.String)} with given arguments and returns
  bound information.
  
  @param catalog       the value for {@code catalog} parameter.
  @param schemaPattern the value for {@code schemaPattern} parameter.
  @return a list of schemas
  @throws SQLException if a database error occurs.