userInfo = new UserInfo();
if (!isAnonymous) {
userInfo.setId(identity.getRemoteId());
}
userInfo.setName(identity.getProfile().getFullName());
<BUG>userInfo.setAvatar(identity.getProfile().getAvatarUrl());
userInfo.setType("contact"); //hardcode for test</BUG>
userInfos.add(userInfo);
}
return Util.getResponse(userInfos, uriInfo, mediaType, Response.Status.OK);

userInfo = new UserInfo();
if (!isAnonymous) {
userInfo.setId(identity.getRemoteId());
}
userInfo.setName(identity.getProfile().getFullName());
userInfo.setAvatar(identity.getProfile() == null ? null : identity.getProfile().getAvatarUrl());
userInfo.setType("contact"); //hardcode for test
userInfos.add(userInfo);
}
return Util.getResponse(userInfos, uriInfo, mediaType, Response.Status.OK);
