* Get the related user avatar to display in the UI comment
*/
public String getAvatarURL(String commentUser) throws ClientException {
String url = VirtualHostHelper.getContextPathProperty()
+ "/icons/missing_avatar.png";
UserProfileService userProfileService = Framework.getLocalService(UserProfileService.class);
DocumentModel userProfileDoc = userProfileService.getUserProfileDocument(
commentUser, ctx.getCoreSession());
if (userProfileDoc == null) {
return url;
}