}
final DivPanel section = gridBuilder.getPanel();
if (firstRow == true) {
section.add(new Heading1Panel(section.newChildId(), getString("address.addresses")));
}
section.add(new ParTextPanel(section.newChildId(), getString(type) + ":"));
final StringBuffer buf = new StringBuffer();
boolean first = true;
if (organization != null) {
section.add(new Heading3Panel(section.newChildId(), organization));
first = appendRow(buf, first, name);
} else {
section.add(new Heading3Panel(section.newChildId(), name));
}
if (StringUtils.isNotBlank(addressText) == true) {
first = appendRow(buf, first, addressText);
}
if (StringUtils.isNotBlank(zipCode) == true || StringUtils.isNotBlank(city) == true) {
final StringBuffer buf2 = new StringBuffer();
if (zipCode != null) {
buf2.append(zipCode).append(" ");
}
if (city != null) {
buf2.append(city);
}
first = appendRow(buf, first, buf2.toString());
}
if (StringUtils.isNotBlank(country) == true) {
first = appendRow(buf, first, country);
}
if (StringUtils.isNotBlank(state) == true) {
first = appendRow(buf, first, state);
}
if (StringUtils.isNotBlank(phone) == true) {
first = appendRow(buf, first, getString("address.phone") + ": " + phone);
}
if (StringUtils.isNotBlank(fax) == true) {
first = appendRow(buf, first, getString("address.phoneType.fax") + ": " + fax);
}
if (StringUtils.isNotBlank(mobile) == true) {
first = appendRow(buf, first, getString("address.phoneType.mobile") + ": " + mobile);
}
final ParTextPanel text = new ParTextPanel(section.newChildId(), buf.toString());
text.getLabel().setEscapeModelStrings(false);
section.add(text);
return false;
}