} catch (FileSystemException fse) {
String msg = "failed to create folder for repository meta data";
log.error(msg, fse);
throw new RepositoryException(msg, fse);
}
metaDataStore = new BasedFileSystem(repStore, fsRootPath);
// init root node uuid
rootNodeId = loadRootNodeId(metaDataStore);
// initialize repository descriptors
initRepositoryDescriptors();
// create registries
nsReg = createNamespaceRegistry(new BasedFileSystem(repStore, "/namespaces"));
ntReg = createNodeTypeRegistry(nsReg, new BasedFileSystem(repStore, "/nodetypes"));
dataStore = repConfig.getDataStore();
// init workspace configs
for (WorkspaceConfig config : repConfig.getWorkspaceConfigs()) {