while (rs.next()) { if (rs.getShort("TYPE") == DatabaseMetaData.tableIndexStatistic) continue;
ResultSet rs = null;
    private void initIndexes(Database db, DatabaseMetaData meta, Properties properties) throws SQLException {        if (!isView()) {            ResultSet rs = null;            try {                try {                    if (oracleSelectIndexesBug)                        rs = getOracleIndexInfo(db, properties);                    else                        rs = meta.getIndexInfo(null, schema, name, false, true);                } catch (SQLException exc) {                    if (exc.getMessage().indexOf("ORA-01031") != -1) {                        rs = getOracleIndexInfo(db, properties);                        oracleSelectIndexesBug = true;                    } else {                        throw exc;                    }                }                while (rs.next()) {                    if (rs.getShort("TYPE") == DatabaseMetaData.tableIndexStatistic)                        continue;                    addIndex(rs);                }            } catch (SQLException exc) {                System.err.println("Unable to extract index info for table " + name + ": " + exc);            } finally {                if (rs != null)                    rs.close();            }        }    }