}
String linkUrl = Session.getInstance().generateUrl(
new CreateUrlRequest(page, entityUniqueId));
Hyperlink link = new InlineHyperlink("", linkUrl);
main.add(link);
// Manipulate HTML to put the
// class, whose CSS includes a badge image,
// within the anchor tag for the gwt-InlineHyperlink
if (allowBadge)
{
Widget badgeForGroupCoordinator = AvatarBadgeManager.getInstance()
.createOverlay(entityUniqueId, size);
link.getElement().appendChild(badgeForGroupCoordinator
.getElement());
}
link.getElement().appendChild(avatar.getElement());
}