buffer.append("</portlet-name>\n");
Iterator displayNameIter = pDef.getDisplayNameSet().iterator();
while (displayNameIter.hasNext())
{
MutableDisplayName displayName = (MutableDisplayName) displayNameIter.next();
buffer.append("\t<display-name");
if(displayName.getLocale() != null)
{
buffer.append(" xml:lang=\"");
buffer.append(displayName.getLocale().getCountry());
buffer.append("\"");
}
buffer.append(">");
buffer.append(displayName.getDisplayName());
buffer.append("</display-name>\n");
}
addDescriptions(buffer, pDef.getDescriptionSet());