WorkspaceInfo wspInfo;
synchronized (wspInfos) {
wspInfo = (WorkspaceInfo) wspInfos.get(workspaceName);
if (wspInfo == null) {
throw new NoSuchWorkspaceException(workspaceName);
}
}
try {
initWorkspace(wspInfo);
} catch (RepositoryException e) {
log.error("Unable to initialize workspace '" + workspaceName + "'", e);
throw new NoSuchWorkspaceException(workspaceName);
}
return wspInfo;
}