Bug 130492 Provide a method to serialize the report with library information.
Currently, when engine generate the report document file, the document does not contain any library information. That will cause many propblem on server side. Model should provide a method to serialize the report with library information to a stream so that the generated report document can contain all information that the report need.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
public int compare( Object o1, Object o2 )
			{
				DesignElementHandle handle1 = (DesignElementHandle) o1;
				DesignElementHandle handle2 = (DesignElementHandle) o2;
				String name1 = handle1.getName( );
				String name2 = handle2.getName( );
				if ( null == name1 )
				{
					if ( null == name2 )
						return 0;
					return -1;
				}
				
				if ( null == name2 )
				{
					return 1;
				}
				return name1.compareTo( name2 );
			}
		} );
		return temp;
	}
	/**
	 * Inserts a default theme to the library slot.
	 * 
	 * @param library
	 *            the target library
	 * @param theme
	 *            the theme to insert
	 */