PortletInfo info = portlet.getInfo();
MetaInfo meta = info.getMeta();
displayName = meta.getMetaValue(MetaInfo.DISPLAY_NAME);
String value = null;
if (displayName != null) {
RequestContext i = PortalRequestContext.getCurrentInstance();
Locale locale = i.getLocale();
value = displayName.getString(locale, true);
}
if (value == null || value.length() == 0) {
value = info.getName();
}
return value;
} else {
return "";
}
} else {
RequestContext i = PortalRequestContext.getCurrentInstance();
Locale locale = i.getLocale();
String value = displayName.getString(locale, true);
if (ParameterValidation.isNullOrEmpty(value)) {
org.gatein.pc.api.Portlet portlet = getProducedOfferedPortlet();
PortletInfo info = portlet.getInfo();