DesignElementHandle newElementHandle = duplicateElement( elementToExport, false );
	void exportElement( DesignElementHandle elementToExport, boolean canOverride )			throws SemanticException	{		if ( elementToExport instanceof StyleHandle )		{			exportStyle( (StyleHandle) elementToExport, canOverride );			return;		}		if ( canOverride )		{			int nameSpaceID = ( (ElementDefn) elementToExport.getDefn( ) )					.getNameSpaceID( );			NameSpace nameSpace = targetLibraryHandle.getModule( )					.getNameSpace( nameSpaceID );			DesignElement duplicateElement = nameSpace					.getElement( elementToExport.getName( ) );			if ( duplicateElement != null )				duplicateElement.getHandle( elementToExport.getModule( ) )						.drop( );		}		DesignElementHandle newElementHandle = duplicateElement(				elementToExport, false );		int slotID = getTopContainerSlot( elementToExport.getElement( ) );		// The element in body slot should be added into components slot.		if ( slotID == ReportDesign.BODY_SLOT )			slotID = Module.COMPONENT_SLOT;		else if ( slotID == Module.PAGE_SLOT				&& elementToExport.getContainer( ) != elementToExport						.getModuleHandle( ) )			slotID = Module.COMPONENT_SLOT;		// if the element only exist in the report design such as template		// element definition, do not export it.		if ( slotID >= Library.SLOT_COUNT )			return;		SlotHandle slotHandle = targetLibraryHandle.getSlot( slotID );		addToSlot( slotHandle, newElementHandle );	}