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
*            the new name space
	 */
	public static void reviseNameSpace( Module module, DesignElement content,
			String nameSpace )
	{
		List propDefns = content.getPropertyDefns( );
		for ( int i = 0; i < propDefns.size( ); i++ )
		{
			ElementPropertyDefn propDefn = (ElementPropertyDefn) propDefns
					.get( i );
			if ( propDefn.getTypeCode( ) != IPropertyType.ELEMENT_REF_TYPE )
				continue;
			Object value = content.getLocalProperty( module, propDefn );
			if ( value == null )
				continue;
			ReferenceValue refValue = (ReferenceValue) value;
			refValue.setLibraryNamespace( nameSpace );
		}
		IElementDefn defn = content.getDefn( );
		for ( int i = 0; i < defn.getSlotCount( ); i++ )
		{
			ContainerSlot slot = content.getSlot( i );
			if ( slot != null )
				for ( int pos = 0; pos < slot.getCount( ); pos++ )
					reviseNameSpace( module, slot.getContent( pos ), nameSpace );
		}
	}
	/**
	 * Determines whether there is a child in the given element, which is kind
	 * of the given element definition.