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
public void setExtendsName( String name )
	{
		setExtendsElement( null );
		name = StringUtil.trimString( name );
		if ( name == null )
			return;
		String namespace = StringUtil.extractNamespace( name );
		name = StringUtil.extractName( name );
		extendsRef = new ElementRefValue( namespace, name );
	}
	/**
	 * Validates this element and its contents.
	 * 
	 * @param module
	 *            the module
	 * @return the list of the errors found in validation, each of which is the
	 *         <code>SemanticException</code> object.
	 */
	public final List validateWithContents( Module module )
	{
		ElementDefn elementDefn = (ElementDefn) getDefn( );
		List validatorList = ValidationExecutor.getValidationNodes( this,
				elementDefn.getTriggerDefnSet( ), true );
		ValidationExecutor executor = module.getValidationExecutor( );
		errors = executor.perform( this, validatorList );
		List list = new ArrayList( errors );
		int count = getDefn( ).getSlotCount( );
		for ( int i = 0; i < count; i++ )
		{
			Iterator iter = getSlot( i ).iterator( );