@Nonnull
@Override
public UserManager getUserManager(Root root, NamePathMapper namePathMapper) {
UserManager umgr = new UserManagerImpl(root, namePathMapper, getSecurityProvider());
if (getParameters().getConfigValue(UserConstants.PARAM_SUPPORT_AUTOSAVE, false)) {
return new AutoSaveEnabledManager(umgr, root);
} else {
return umgr;
}
}