* @see org.jasig.portal.portlet.registry.IPortletCategoryRegistry#getParentCategories(org.jasig.portal.portlet.om.IPortletDefinition)
*/
@Override
public Set<PortletCategory> getParentCategories(IPortletDefinition child) {
String childKey = child.getPortletDefinitionId().getStringId();
IEntity childEntity = GroupService.getEntity(childKey, IPortletDefinition.class);
Set<PortletCategory> parents = new HashSet<PortletCategory>();
@SuppressWarnings("unchecked")
Iterator<IGroupMember> iter = childEntity.getContainingGroups();
while (iter.hasNext()) {
IGroupMember gm = iter.next();
if (gm.isGroup()) {
String categoryId = gm.getKey();
parents.add(getPortletCategory(categoryId));