private long locateHash(final ISqlJetSchema schema, final String hash) throws SqlJetException {
final String i = schema.getIndexes(REP_CACHE_TABLE).iterator().next().getName();
Assert.assertNotNull(i);
final ISqlJetBtreeIndexTable index = new SqlJetBtreeIndexTable(btreeCopy, i, false);
try {
return index.lookup(false, hash);
} finally {
index.close();
}
}