// log in the newly created workspace
newSession = repository.login(credentials, targetWkspName);
Node newRootNode = newSession.getRootNode();
// log in the newly created workspace
newSession = repository.login(credentials, targetWkspName);
Node newRootNode = newSession.getRootNode();
newSession.save();
JcrUtils.addPrivilege(newSession, "/", SlcConstants.ROLE_SLC,
Privilege.JCR_ALL);
newSession.save();
JcrUtils.addPrivilege(newSession, "/", SlcConstants.ROLE_SLC,
Privilege.JCR_ALL);