Bug 134954 Library can't be removed
Steps to reproduce: 1.New a report "a.rptdesign" 2.New a library which is not in the same fold with report, saying "../test/lib.rptlibrary" 3.Report includes the library 4.Remove the library Expected result: The library is removed Actual result: Open XMLSource, the included library structure is still there.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/LibraryCommand.java
activityStack.rollback( );
			throw e;
		}
		activityStack.commit( );
		
		activityStack.flush( );
		LibraryEvent event = new LibraryEvent( module
				.getLibraryByLocation( location ), LibraryEvent.RELOAD );
		module.broadcast( event );
	}
	/**
	 * Checks possible extends references to element in the given Library. If
	 * extends reference is unresolve, virtual elements are removed. And local
	 * property values of virtual elements are returned.
	 * 
	 * @param library
	 *            the library instance
	 * @return the map containing local values of virtual elements. Each key is
	 *         the id of extends child. Each value is another map of which the
	 *         key is the base id of virtual element and the value is property
	 *         name/value pair.
	 * @throws LibraryException
	 *             if there is any extends reference.
	 */
	private Map dealAllElementDecendents( Library library, int actionCode )
			throws SemanticException
	{
		
		
		Map overriddenValues = new HashMap( );