Bug 155943 "Restore Properties" is always enabled for extended chart
Steps to reproduce: 1.New a report, includes a library, extends lib.chart 2.Choose the chart Expected result: "Restore Properties" is disabled untill set/change any local properties for the chart Actual result: "Restore Properties" is always enabled
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
if ( tag == null )
			tag = getTagByPropertyType( propDefn );
		if ( propDefn.getTypeCode( ) == PropertyType.SCRIPT_TYPE )
			cdata = true;
		if ( withoutName )
			writeEntry( tag, null, xml, cdata );
		else
			writeEntry( tag, memberName, xml, cdata );
	}
	/**
	 * Writes the resource key entry.
	 * 
	 * @param tagName
	 *            the tag name to write
	 * @param name
	 *            the property name of resource
	 * @param key
	 *            the resource key value
	 * @param xml
	 *            the resource value
	 * @param cdata
	 *            whether the resource value should be written as CDATA.
	 */
	protected void writeResouceKey( String tagName, String name, String key,
			String xml, boolean cdata )
	{
		
		if ( key == null && xml == null )
			return;
		writer.startElement( tagName );