response.setPhoneNumber(user.getPhoneNumber());
response.setSub(user.getId());
response.setLastLogonSuccess(user.getLastLogonTime());
if (addCustomAttributes) {
UserInfo info = userDatabase.getUserInfo(user.getId());
<BUG>if (info!=null && info.size()>0) {
response.setAttributeValue(USER_ATTRIBUTES, info);

}</BUG>
}

response.setPhoneNumber(user.getPhoneNumber());
response.setSub(user.getId());
response.setLastLogonSuccess(user.getLastLogonTime());
if (addCustomAttributes) {
UserInfo info = userDatabase.getUserInfo(user.getId());
if (info!=null) {
response.setAttributeValue(USER_ATTRIBUTES, info.getUserAttributes());
response.setAttributeValue(ROLES, info.getRoles());
}
}
