try {
// create uri mapper for the cms
// we are mounting the cms on the root, and getting the workspace name from the
// application properties
UriMapper mapper = new PrefixUriMapper(Path.ROOT) {
public Workspace getWorkspaceForRequest(RequestCycle requestCycle, Brix brix) {
final String name = getProperties().getJcrDefaultWorkspace();
SitePlugin sitePlugin = SitePlugin.get(brix);
return sitePlugin.getSiteWorkspace(name, getProperties().getWorkspaceDefaultState());
}