(List) PortletSessionState.getAttribute(portlet, rundata, RESULTS);
List categories = PortletFilter.buildCategoryList(portlets);
context.put("categories", categories);
MediaTypeRegistry mediaTypeReg =
(MediaTypeRegistry) Registry.get(Registry.MEDIA_TYPE);
ArrayList collection = new ArrayList();
Iterator iter = mediaTypeReg.listEntryNames();
while (iter.hasNext())
{
collection.add(iter.next());
}