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
* 
	 * @see org.eclipse.birt.report.model.elements.ElementVisitor#visitExtendedDataSource(org.eclipse.birt.report.model.elements.ExtendedDataSource)
	 */
	public void visitOdaDataSource( OdaDataSource obj )
	{
		writer.startElement( DesignSchemaConstants.ODA_DATA_SOURCE_TAG );
		attribute( obj, DesignSchemaConstants.EXTENSION_ID_ATTRIB,
				OdaDataSource.EXTENSION_ID_PROP );
		super.visitOdaDataSource( obj );
		writeOdaDesignerState( obj, OdaDataSource.DESIGNER_STATE_PROP );
		List properties = (List) obj.getLocalProperty( getModule( ),
				OdaDataSource.PRIVATE_DRIVER_PROPERTIES_PROP );
		writeExtendedProperties( properties,
				OdaDataSource.PRIVATE_DRIVER_PROPERTIES_PROP );
		writeOdaExtensionProperties( obj, OdaDataSource.EXTENSION_ID_PROP );
		writer.endElement( );
	}
	/**
	 * Writes ODA exension properties.
	 * 
	 * @param obj
	 *            the ODA element to write
	 * @param extensionIDProp
	 *            the extension ID for ODA properties
	 */
	private void writeOdaExtensionProperties( DesignElement obj,
			String extensionIDProp )
	{
		IElementDefn extDefn = null;
		if ( obj instanceof OdaDataSource )