Bug 210507 Enhance Report engine to support multiple view
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/ReportParser.java
sessionHandle.setResourceLocator( locator );
		}
		
		ReportDesignHandle designHandle = null;
		ModuleOption modOptions = new ModuleOption( options );
		if ( in != null )
			designHandle = sessionHandle.openDesign( name, in, modOptions );
		else
			designHandle = sessionHandle.openDesign( name, modOptions );
		return designHandle;
	}
	/**
	 * parse the XML input stream.
	 * 
	 * @param design
	 *            DE's IR
	 * @return FPE's IR, null if there is any error.
	 */
	public Report parse( ReportDesignHandle design )
	{
		assert ( design != null );
		
		EngineIRVisitor visitor = new EngineIRVisitor( design );
		Report report = visitor.translate( );
		report.setVersion( ReportDocumentConstants.BIRT_ENGINE_VERSION );
		return report;
		
	}
	
}