public void initialize(Properties props, WorkerBuildContext context, DirectoryBasedIndexManager indexManager) {
this.workspace = new GaeInstantWorkspace(indexManager, context, props);
this.visitor = new LuceneWorkVisitor(workspace);
this.errorHandler = context.getErrorHandler();
DirectoryDAO directoryDAO = new DirectoryDAO();
Directory directory = directoryDAO.findByName(indexManager.getIndexName());
readLock = new LockImpl(directory, "backendLock.parallelModificationLock");
writeLock = new LockImpl(directory, "backendLock.exclusiveWriteLock");
}