((HTMLRenderOption)htmlRenderOptions).setEnableMetadata( true );
	private InstanceID findIid( String fileName, String type )	{		InstanceID iid = null;		report_document = inputPath + fileName + ".rptdocument";		report_design = inputPath + fileName + ".rptdesign";		IRenderTask task;		try		{			createReportDocument( report_design, report_document );			reportDoc = engine.openReportDocument( report_document );			task = engine.createRenderTask( reportDoc );			task.setLocale( Locale.ENGLISH );			IRenderOption htmlRenderOptions = new HTMLRenderOption( );			HashMap appContext = new HashMap( );			task.setAppContext( appContext );			ByteArrayOutputStream ostream = new ByteArrayOutputStream( );			htmlRenderOptions.setOutputStream( ostream );			htmlRenderOptions.setOutputFormat( "html" );			task.setRenderOption( htmlRenderOptions );			task.render( );			task.close( );			String content = ostream.toString( "utf-8" );			Pattern typePattern = Pattern.compile( "(element_type=\"" + type					+ "\".*iid=\".*\")" );			Matcher matcher = typePattern.matcher( content );			if ( matcher.find( ) )			{				String tmp_type = matcher.group( 1 ), strIid;				strIid = tmp_type.substring( tmp_type.indexOf( "iid" ) );				strIid = strIid.substring( 5, strIid.indexOf( "\"", 6 ) );				iid = InstanceID.parse( strIid );				return iid;			}		}		catch ( Exception e )		{			e.printStackTrace( );			assertFalse( "Failed to find instance id of " + type, true );		}		return iid;	}