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
return true;
		if ( getSlot( slotId ).getCount( ) > 0
				&& !slotDefn.isMultipleCardinality( ) )
			return false;
		return true;
	}
	/**
	 * Checks whether the element to insert can reside in the given module.
	 * 
	 * @param module
	 *            the root module of the element to add
	 * @param slotID
	 *            the slot ID to insert
	 * @param element
	 *            the element to insert
	 * @return false if the module is a library and the element to insert is a
	 *         template element or its content is a template element; or the
	 *         container is report design and slot is component slot and the
	 *         element to insert is a template element or its content is a
	 *         template element; otherwise true
	 */
	private boolean canContainTemplateElement( Module module, int slotID,
			DesignElement element )
	{
		
		
		IElementDefn defn = MetaDataDictionary.getInstance( ).getElement(
				ReportDesignConstants.TEMPLATE_ELEMENT );
		if ( element instanceof TemplateElement )
			return canContainTemplateElement( module, slotID, defn );