protected HtmlComponent getValue(PartyContact contact) {
HtmlInlineContainer span = new HtmlInlineContainer();
if (contact instanceof Phone) {
span.addChild(new HtmlText(((Phone) contact).getNumber()));
} else if (contact instanceof MobilePhone) {
span.addChild(new HtmlText(((MobilePhone) contact).getNumber()));
} else if (contact instanceof EmailAddress) {
EmailAddress email = (EmailAddress) contact;
if (isPublicSpace()) {
HtmlImage img = new HtmlImage();
img.setSource(RenderUtils.getContextRelativePath("") + "/publico/viewHomepage.do?method=emailPng&email="