if ( model instanceof ReportElementModel ) { return ( (ReportElementModel) model ).getElementHandle( ); } else if ( model instanceof SlotHandle )
if ( model instanceof SlotHandle )
	public Object getParent( Object model )	{		if ( model instanceof ReportElementModel )		{			return ( (ReportElementModel) model ).getElementHandle( );		}		else if ( model instanceof SlotHandle )		{			return ( (SlotHandle) model ).getElementHandle( );		}		else if ( model instanceof ReportElementHandle )		{			ReportElementHandle handle = (ReportElementHandle) model;			if ( handle instanceof CellHandle					|| handle.getContainer( ) instanceof CellHandle					|| handle.getContainer( ) instanceof ParameterGroupHandle					|| ( handle instanceof RowHandle && handle.getContainer( ) instanceof GridHandle ) )			{				return handle.getContainer( );			}			if ( handle.getContainerSlotHandle( ) != null )			{				return new ReportElementModel( handle.getContainerSlotHandle( ) );			}		}		return null;	}