private ContainerMetaInfo buildContainerMeta(PortletMetaData portletMD)
{
ContainerMetaInfo containerMeta = new ContainerMetaInfo();
//
ResourceBundleManager bundleMgr = context.getBundleManager(portletMD);
// Capture inline values
PortletInfoMetaData portletInfoMD = portletMD.getPortletInfo();
String[] inlines = null;
if (portletInfoMD != null)
{
// JBoss XB would give null for an empty title, but we know that
// there must be a title according to the schema
String title = portletInfoMD.getTitle();
if (title == null)
{
title = "";
}
//
inlines = new String[]{
title,
portletInfoMD.getShortTitle(),
portletInfoMD.getKeywords()
};
}
// Construct info from resource bundle manager
for (int i = 0; i < KEYS.length; i++)
{
String key = KEYS[i];
//
Map<Locale, String> tmp = new HashMap<Locale, String>();
//
List<Locale> locales = getSupportedLocales(portletMD);
// Add english locale
locales.add(Locale.ENGLISH);
// Feed with the known locales (perhaps should try more locales)
for (Locale locale : locales)
{
ResourceBundle bundle = bundleMgr.getResourceBundle(locale);
//
if (bundle != null)
{
try