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
}
	/**
	 * Checks whether a type of elements can reside in the given slot of the
	 * current element. Besides the type check, it also checks the cardinality
	 * of this slot.
	 * 
	 * @param slotId
	 *            the slot id of the current element
	 * @param defn
	 *            the element definition
	 * 
	 * @return <code>true</code> if elements with the definition
	 *         <code>defn</code> can reside in the given slot. Otherwise
	 *         <code>false</code>.
	 */
	private boolean canContainInRom( int slotId, IElementDefn defn )
	{
		if ( slotId < 0 || slotId >= getDefn( ).getSlotCount( ) )
			return false;
		ISlotDefn slotDefn = getDefn( ).getSlot( slotId );
		assert slotDefn != null;
		if ( !slotDefn.canContain( defn ) )
			return false;
		
		
		
		String name = defn.getName( );
		if ( ReportDesignConstants.TEMPLATE_DATA_SET.equals( name )
				|| ReportDesignConstants.TEMPLATE_REPORT_ITEM.equals( name )
				|| ReportDesignConstants.TEMPLATE_ELEMENT.equals( name ) )