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
while ( iter.hasNext( ) )
			{
				list.addAll( ( (DesignElement) iter.next( ) )
						.validateWithContents( module ) );
			}
		}
		return list;
	}
	/**
	 * Validates only this element without its contents, and return error list.
	 * The derived class should override this method to define specific
	 * validation rules.
	 * 
	 * @param module
	 *            the module
	 * @return the list of the errors found in validation, each of which is the
	 *         <code>SemanticException</code> object.
	 */
	public List validate( Module module )
	{
		errors = new ArrayList( );
		
		errors.addAll( UnsupportedElementValidator.getInstance( ).validate(
				module, this ) );