} catch (org.eclipse.birt.report.engine.api.EngineException e) {  e.printStackTrace();
} catch (org.eclipse.birt.report.engine.api.EngineException e) { logger.log( Level.SEVERE, e.getMessage( ), e );
	protected void executeReport()	{		try {			IReportRunnable design = engine.openReportDesign( designName );			IRunAndRenderTask task = engine.createRunAndRenderTask( design );						// set report render options			IRenderOption options;			if(format.equalsIgnoreCase("pdf")){				options = new FORenderOption();   			}			else if(format.equalsIgnoreCase("fo")){				options = new FORenderOption();			}			else{				options = new HTMLRenderOption();			}									if(format.equalsIgnoreCase("html") ){				HTMLRenderContext renderContext = new HTMLRenderContext();				renderContext.setImageDirectory("image"); //$NON-NLS-1$				task.setContext(renderContext);			}						if(locale != null) 			{				Locale loc = getLocale( locale );				options.setLocale(loc);				task.setLocale(loc);			}						if(targetFile == null)			{                // target file is same as design file				targetFile = new String(designName.substring(0, designName.indexOf('.'))							+"."+((format == null) ? "html" : format));			}			options.setOutputFileName(targetFile);						options.setOutputFormat((format == null) ? "html" : format);						if(htmlType == "ReportletNoCSS" )				((HTMLRenderOption )options).setEmbeddable(true);						task.setRenderOption(options);						task.run();		} catch (org.eclipse.birt.report.engine.api.EngineException e) {			// TODO Auto-generated catch block			e.printStackTrace();		}	}