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
private static LibraryHandle openOrCreateLibrary( DesignSession session,
			String libraryFileName ) throws DesignFileException
	{
		try
		{
			Library library = session.openLibrary( libraryFileName );
			return library.handle( );
		}
		catch ( DesignFileException e )
		{
			if ( DesignFileException.DESIGN_EXCEPTION_SYNTAX_ERROR == e
					.getErrorCode( ) )
			{
				List errorList = e.getErrorList( );
				
				ErrorDetail error = ( (ErrorDetail) errorList.get( 0 ) );
				if ( DesignParserException.DESIGN_EXCEPTION_FILE_NOT_FOUND == error
						.getErrorCode( ) )
				{
					Library library = session.createLibrary( );
					LibraryHandle libraryHandle = library.handle( );
					libraryHandle.setFileName( libraryFileName );
					return libraryHandle;
				}
			}
			throw e;
		}
	}
}