final Integer userId = user.getId();
if (UserRights.getAccessChecker().isDemoUser(userId) == true) {
MySession.get().removeAttribute(key);
}
final UserXmlPreferencesCache userXmlPreferencesCache = UserXmlPreferencesCache.getDefaultInstance();
return userXmlPreferencesCache.removeEntry(userId, key);
}
}