osPerson.setEmails(emailList);
AvatarUrlGenerator generator = new AvatarUrlGenerator(EntityType.PERSON);
osPerson.setThumbnailUrl(containerBaseUrl + generator.getNormalAvatarUrl(inPerson.getAvatarId()));
osPerson.setAccounts(Collections.singletonList((Account) new AccountImpl(accountTopLevelDomain, null, inPerson
.getAccountId())));
return osPerson;
}