Bug 199751 getProperty(...) returns null
I created report with user property called "version". Later i need to access that property using BIRT Runtime. I access it using getProperty() method: Report: <list-property name="userProperties"> <structure> <property name="name">version</property> <property name="type">string</property> <property name="isVisible">true</property> </structure> </list-property> <property name="version">1.0</property> Accesing using BIRT Runtime: ReportRunnable reportDesign = engine.openReportDesign("Report.rptdesign"); String version = reportDesign.getProperty("version"); When there's a library linked to Report.rptdesign, version is null. When i remove the library from report design, getProperty() returns correct value.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ReportDesignSerializer.java
CssStyleSheet newSheet = new CssStyleSheet( );
		newSheet.setFileName( sheet.getFileName( ) );
		List styles = sheet.getStyles( );
		for ( int i = 0; i < styles.size( ); i++ )
		{
			CssStyle style = (CssStyle) styles.get( i );
			CssStyle newStyle = visitCssStyle( style );
			newStyle.setCssStyleSheet( newSheet );
			newSheet.addStyle( newStyle );
		}
		return newSheet;
	}
	/**
	 * Localizes a css style.
	 * 
	 */
	private CssStyle visitCssStyle( CssStyle style )
	{
		CssStyle newStyle = new CssStyle( style.getName( ) );
		localizePrivateStyleProperties( newStyle, style, (Module) style
				.getContainer( ), new HashSet( ) );
		return newStyle;
	}
	/**
	 * Creates am element by the given element. The given element must be the
	 * one that is not directly defined in the source design.
	 * 
	 * @param struct
	 *            the source element
	 * @return the new element