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
* (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.elements.ElementVisitor#visitModule(org.eclipse.birt.report.model.core.Module)
	 */
	public void visitModule( Module obj )
	{
		writer.attribute( DesignSchemaConstants.XMLNS_ATTRIB,
				DEFAULT_NAME_SPACE );
		writer.attribute( DesignSchemaConstants.VERSION_ATTRIB,
				DesignSchemaConstants.REPORT_VERSION );
		writer.attribute( DesignSchemaConstants.ID_ATTRIB, new Long( obj
				.getID( ) ).toString( ) );
		property( obj, Module.AUTHOR_PROP );
		property( obj, Module.HELP_GUIDE_PROP );
		property( obj, Module.CREATED_BY_PROP );
		property( obj, Module.UNITS_PROP );
		property( obj, Module.BASE_PROP );
		property( obj, Module.INCLUDE_RESOURCE_PROP );
		resourceKey( obj, Module.TITLE_ID_PROP, Module.TITLE_PROP );
		property( obj, Module.COMMENTS_PROP );
		resourceKey( obj, Module.DESCRIPTION_ID_PROP, Module.DESCRIPTION_PROP );
		writeUserPropertyDefns( obj );
		writeUserPropertyValues( obj );
		
		writeStructureList( obj, Module.PROPERTY_BINDINGS_PROP );
	}
	/**
	 * Visits the embedded images of the module.
	 * 
	 * @param obj