// Search Index
searchIndex = new SearchIndexImplStub();
searchIndex.bindResourceSerializerService(serializer);
// Connect to the repository
repository = new FileSystemContentRepository();
repository.setSerializer(serializer);
repository.setEnvironment(Environment.Production);
repository.setSearchIndex(searchIndex);
Dictionary<String, Object> repositoryProperties = new Hashtable<String, Object>();
repositoryProperties.put(FileSystemContentRepository.OPT_ROOT_DIR, repositoryRoot.getAbsolutePath());