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/core/DesignElement.java
extendsRef = null;
		}
		else
		{
			
			assert base.getDefn( ) == getDefn( );
			
			assert base.getName( ) != null;
			String namespace = null;
			Module root = base.getRoot( );
			if ( root instanceof Library )
			{
				namespace = ( (Library) root ).getNamespace( );
			}
			extendsRef = new ElementRefValue( namespace, base );
			base.addDerived( this );
		}
	}
	/**
	 * Returns the data set element, if any, for this element.
	 * 
	 * @param module
	 *            the module of this element
	 * 
	 * @return the data set element defined on this specific element
	 */
	public TemplateParameterDefinition getTemplateParameterElement(
			Module module )
	{
		ElementRefValue templateParam = (ElementRefValue) getProperty( module,