design = engine.openReportDesign( designName );
parseOptions( ); if ( "Run".equalsIgnoreCase( mode ) ) { runReport( ); } else if ( "Render".equalsIgnoreCase( mode ) ) { renderReport( ); } else { runAndRenderReport( ); }
	protected void execute( )	{		if ( args.length==0 )		{			printUsage();			return;		}		//Process command line arguments		commandlineHandler.parseOptions( );		IReportRunnable design;		try		{			design = engine.openReportDesign( designName );		}		catch (EngineException e)		{			logger.log( Level.SEVERE, "There are errors generating the report in design file.", e); //$NON-NLS-1$			return;		}		if ( !validateAndPrepareArguments( ) )			return;		HashMap params = commandlineHandler.parseParameters(design);		// Generate the output content		executeReport( design , params);	}