Bug 148747 Design become invalid when I extend a masterpage from Library
The attachment contains a report file and a library file. Reproduce: 1. Deploy the library("lib"), and open the report. 2. Drag Masterpage("page1") from "lib" to report. 3. Reopen the report, it become invalid.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
writer.startElement( DesignSchemaConstants.SCRIPT_DATA_SET_TAG );
		super.visitScriptDataSet( obj );
		property( obj, ScriptDataSet.OPEN_METHOD );
		property( obj, ScriptDataSet.DESCRIBE_METHOD );
		property( obj, ScriptDataSet.FETCH_METHOD );
		property( obj, ScriptDataSet.CLOSE_METHOD );
		writer.endElement( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.design.elements.DesignVisitor#visitFreeForm(org.eclipse.birt.report.model.design.elements.Container)
	 */
	public void visitFreeForm( FreeForm obj )
	{
		writer.startElement( DesignSchemaConstants.FREE_FORM_TAG );
		super.visitFreeForm( obj );
		writeContents( obj, FreeForm.REPORT_ITEMS_SLOT,
				DesignSchemaConstants.REPORT_ITEMS_TAG );
		writer.endElement( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.design.elements.DesignVisitor#visitDataItem(org.eclipse.birt.report.model.design.elements.DataItem)
	 */
	public void visitDataItem( DataItem obj )
	{
		
		boundColumnsMgr.dealData( obj, getModule( ) );