Bug 143173 No error for recursive including when exporting a report to a library
Steps to reproduce: 1.New a library named "Lib", add a lable in it 2.New a report, extends Lib.label 3.Export the report, choose target library "Lib" Expected result: Error to warn the recursive including Actual result: The target library includes itself without error
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/ElementExportUtil.java
* @throws DesignFileException
	 *             if the library file has fatal errors which can not be opened.
	 * @throws SemanticException
	 *             if error encountered when element name is duplicated in the
	 *             target library.
	 * 
	 * @throws IOException
	 *             if error encountered when writing file.
	 */
	public static void exportDesign( ReportDesignHandle designToExport,
			String libraryFileName, boolean canOverride, boolean genDefaultName )
			throws DesignFileException, SemanticException, IOException
	{
		DesignSession session = designToExport.getModule( ).getSession( );
		LibraryHandle libraryHandle = openOrCreateLibrary( session,
				libraryFileName );
		assert libraryHandle != null;
		exportDesign( designToExport, libraryHandle, canOverride,
				genDefaultName );
		libraryHandle.save( );
		libraryHandle.close( );
	}
	/**
	 * Exports one design to library.
	 * 
	 * @param designToExport
	 *            handle of the report design to export
	 * @param targetLibraryHandle
	 *            handle of target library
	 * @param canOverride