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
&& defn.isKindOf( MetaDataDictionary.getInstance( ).getElement(
						ReportDesignConstants.TEMPLATE_ELEMENT ) ) )
		{
			
			
			DesignElement container = this;
			int slot = slotID;
			while ( container != null )
			{
				if ( ( container instanceof Module && slot == Module.COMPONENT_SLOT )
						|| container instanceof Library )
					return false;
				slot = container.getContainerSlot( );
				container = container.getContainer( );
			}
			if ( module instanceof Library )
				return false;
		}
		return true;
	}
	/**
	 * Checks whether the <code>content</code> can be inserted to the slot
	 * <code>slotId</code> in another element <code>container</code>.
	 * 
	 * @param module
	 *            the module
	 * @param container
	 *            the container element
	 * @param slotId
	 *            the slot id of the container element