this.log(LogService.LOG_INFO, "createWorkspace: Requested workspace "
+ workspace + " does not exist, trying to create");
Session tmpSession = null;
try {
SimpleCredentials sc = new SimpleCredentials(this.adminUser,
this.adminPass);
tmpSession = this.getRepository().login(sc);
Workspace defaultWs = tmpSession.getWorkspace();
if (defaultWs instanceof JackrabbitWorkspace) {
((JackrabbitWorkspace) defaultWs).createWorkspace(workspace);