Date previousLoginDate = UserLumifyProperties.PREVIOUS_LOGIN_DATE.getPropertyValue(user);
String previousLoginRemoteAddr = UserLumifyProperties.PREVIOUS_LOGIN_REMOTE_ADDR.getPropertyValue(user);
int loginCount = UserLumifyProperties.LOGIN_COUNT.getPropertyValue(user, 0);
String[] authorizations = toArray(getAuthorizations(user), String.class);
ModelUserContext modelUserContext = getModelUserContext(authorizations);
UserStatus userStatus = UserStatus.valueOf(UserLumifyProperties.STATUS.getPropertyValue(user));
Set<Privilege> privileges = Privilege.stringToPrivileges(UserLumifyProperties.PRIVILEGES.getPropertyValue(user));
String currentWorkspaceId = UserLumifyProperties.CURRENT_WORKSPACE.getPropertyValue(user);
JSONObject preferences = UserLumifyProperties.UI_PREFERENCES.getPropertyValue(user);
LOGGER.debug("Creating user from UserRow. username: %s", username);