}
long timeStart = System.currentTimeMillis();
//System.out.println(GAEIndexReaderPool.class.getClassLoader().getResource("indices/" + category + "/index").getFile());
//File index = new File(GAEIndexReaderPool.class.getClassLoader().getResource("indices/" + category + "/index").getFile());
GAEDirectory directory = cachedDirectories.get(category);
if (directory == null) {
log.info("trying to instance a directory for '" + category + "' version=" + version);
directory = new GAEDirectory(category, version);
cachedDirectories.put(category, directory);
}
try {
GAEIndexReader reader = GAEIndexReader.getReader(directory);