Bug 189813 After modify a wrong preview report, when preview in Web viewer it can not process the document file[1102]
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportDocumentWriter.java
public void saveBookmarks( HashMap bookmarks )
	{
		if ( bookmarks.isEmpty( ) )
		{
			return;
		}
		
		this.bookmarks = new HashMap();
		this.bookmarks.putAll( bookmarks );
	}
	/**
	 * save the design into the stream.
	 * 
	 * @param design
	 *            design handler
	 */
	public void saveDesign( ReportRunnable runnable )
	{
		RAOutputStream out = null;
		try
		{
			ReportDesignHandle design = runnable.getReport( );
			out = archive.createRandomAccessStream( DESIGN_STREAM );
			
			ReportDesignHandle newDesign = DocumentUtil.serialize(design, out);
			designName = design.getFileName( );
			runnable.setDesignHandle( newDesign );
			
		}
		catch ( Exception ex )