.getVersionManager();
if (versionManager.isCheckedOut(userProfile.getPath()))
versionManager.checkin(userProfile.getPath());
+
+ }
+
+ // Remote roles
+ if (roles != null) {
+ writeRemoteRoles(userProfile, roles);
}
return userProfile;
} catch (RepositoryException e) {