FileGroup editorGroup = new FileGroup(getAccreditableManager().getGroupManager(),
getLogger(), editorGroupName);
FileGroup adminGroup = new FileGroup(getAccreditableManager().getGroupManager(),
getLogger(), adminGroupName);
LDAPUser user = new LDAPUser(getAccreditableManager().getUserManager(), getLogger(),
userName, email, ldapId, getLogger());
editorRole.save();
adminRole.save();
/*
* editorGroup.addRole(editorRole); user.addGroup(editorGroup);
* adminGroup.addRole(editorRole); adminGroup.addRole(adminRole);
*/
editorGroup.save();
adminGroup.save();
adminGroup.add(user);
user.save();
}