public GetUserInfoResult getGetUserInfoResult(String email){
User userBean = model.find(User.class, email);
if(userBean != null){
Set<String> friends = getSecureSet(userBean.getFriends());
Set<String> prending = getSecureSet(userBean.getPendingFriends());
return new GetUserInfoResult(userBean.getCell(), userBean.getCountry(), userBean.getCity(), email, userBean.isReceiveEmails(), friends, prending, getOnline(friends));
}else{
// It's maybe the first time, and DB is slow so it can be null
Set<String> empty = new HashSet<String>();
return new GetUserInfoResult("", "", "", email, true, empty, empty, empty);
}
}