guestUserPreferencesManager = new GuestUserPreferencesManager(person);
guestUserPreferencesManagers.put(personId, guestUserPreferencesManager);
}
}
userInstance = new GuestUserInstance(person, guestUserPreferencesManager, request);
}
else {
final ISecurityContext securityContext = person.getSecurityContext();
if (securityContext.isAuthenticated()) {
userInstance = new UserInstance(person, request);