code: private List<String> getIndexes(CmsSetupDb dbCon, String tablename) throws SQLException {
  
          List<String> indexes = new ArrayList<String>();
          String tableIndex = readQuery(QUERY_SHOW_INDEX);
          Map<String, String> replacer = new HashMap<String, String>();
          replacer.put(REPLACEMENT_TABLENAME, tablename);
          CmsSetupDBWrapper db = null;
          try {
              db = dbCon.executeSqlStatement(tableIndex, replacer);
              while (db.getResultSet().next()) {
                  String index = db.getResultSet().getString(FIELD_INDEX);
  
                  if (!indexes.contains(index)) {
                      indexes.add(index);
                  }
  
              }
          } finally {
              if (db != null) {
                  db.close();
              }
          }
          return indexes;
      }
docs: Gets the indexes for a table.<p>
  
  @param dbCon the db connection interface
  @param tablename the table to get the indexes from
  
  @return a list of indexes
  
  @throws SQLException if somehting goes wrong