else if ( newContainer instanceof ReportElementModel ) { slotID = ( (ReportElementModel) newContainer ).getSlotId( ); container = ( (ReportElementModel) newContainer ).getElementHandle( ); }
	private void calculatePositionAndSlotId( )	{		DesignElementHandle container = null;		if ( newContainer instanceof DesignElementHandle )		{			slotID = DEUtil.getDefaultSlotID( newContainer );			container = (DesignElementHandle) newContainer;		}		else if ( newContainer instanceof SlotHandle )		{			slotID = ( (SlotHandle) newContainer ).getSlotID( );			container = ( (SlotHandle) newContainer ).getElementHandle( );		}		else if ( newContainer instanceof ReportElementModel )		{			slotID = ( (ReportElementModel) newContainer ).getSlotId( );			container = ( (ReportElementModel) newContainer ).getElementHandle( );		}		else		{			return;		}		if ( afterHandle != null )		{			position = DEUtil.findInsertPosition( container,					afterHandle,					slotID );		}		else if ( position > -1				&& isCut				&& sourceHandle.getContainer( ) == container )		{			int oldPosition = DEUtil.findInsertPosition( container,					sourceHandle,					slotID );			if ( oldPosition < position )			{				position--;			}		}	}