code: public DatabaseObject getExample(final Database database, final String tableName) {
        final Schema schema = new Schema(getCatalogName(), getSchemaName());
        final DatabaseObject example;
  
        // For GeoDB, the index is another table.
        if (database instanceof DerbyDatabase || database instanceof H2Database) {
           final String correctedTableName = database.correctObjectName(getHatboxTableName(),
                 Table.class);
           example = new Table().setName(correctedTableName).setSchema(schema);
        } else {
           example = getIndexExample(database, schema, tableName);
        }
        return example;
     }
docs: Creates an example of the database object for which to check.
  
  @param database
  the database instance.
  @param tableName
  the table name of the index.
  @return the database object example.