return properties;
}
@SuppressWarnings("deprecation")
private void copyPrivileges(NodeBuilder root) throws RepositoryException {
PrivilegeRegistry registry = source.getPrivilegeRegistry();
NodeBuilder privileges = root.child(JCR_SYSTEM).child(REP_PRIVILEGES);
privileges.setProperty(JCR_PRIMARYTYPE, NT_REP_PRIVILEGES, NAME);
PrivilegeBits next = PrivilegeBits.NEXT_AFTER_BUILT_INS;
logger.info("Copying registered privileges");
for (Privilege privilege : registry.getRegisteredPrivileges()) {
String name = privilege.getName();
NodeBuilder def = privileges.child(name);
def.setProperty(JCR_PRIMARYTYPE, NT_REP_PRIVILEGE, NAME);
if (privilege.isAbstract()) {