groupList.add( (GroupHandle) result );
groupList.add( result );
	public static List getGroups( DesignElementHandle handle )	{		List groupList = new ArrayList( );		if ( handle instanceof ListingHandle )		{			SlotHandle groupSlotHandle = ( (ListingHandle) handle ).getGroups( );			for ( Iterator iter = groupSlotHandle.iterator( ); iter.hasNext( ); )			{				GroupHandle group = (GroupHandle) iter.next( );				groupList.add( group );			}			return groupList;		}		DesignElementHandle result = handle.getContainer( );		if ( result != null )		{			if ( result instanceof GroupHandle )			{				groupList.add( (GroupHandle) result );				return groupList;			}			return getGroups( result );		}		return groupList;	}