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
* Determines whether this element is managed by namespace. If this element
	 * is a pending node or the container is not managed by the namespace,
	 * return false. Otherwise true.
	 * 
	 * @return true if this element is managed by namespace, otherwise false
	 */
	public boolean isManagedByNameSpace( )
	{
		if ( getContainer( ) == null )
			return false;
		return getContainer( ).isManagedByNameSpace( getContainerSlot( ) );
	}
	/**
	 * Determines if the current element can be transformed to a template
	 * element. False will be returned if the element can not be dropped or the
	 * container of the current element can not contain the template element.
	 * 
	 * @param module
	 *            the root module of the element
	 * 
	 * @return true if it can be transformed, otherwise false.
	 */
	public boolean canTransformToTemplate( Module module )
	{
		if ( this instanceof TemplateElement || ( !canDrop( ) ) )
			return false;
		IElementDefn templateReportItem = MetaDataDictionary.getInstance( )
				.getElement( ReportDesignConstants.TEMPLATE_REPORT_ITEM );
		IElementDefn templateDataSet = MetaDataDictionary.getInstance( )
				.getElement( ReportDesignConstants.TEMPLATE_DATA_SET );