IViewerReportDesignHandle design ) throws ReportServiceException
IViewerReportDesignHandle design, InputOptions options ) throws ReportServiceException
	private IGetParameterDefinitionTask getParameterDefinitionTask(			IViewerReportDesignHandle design ) throws ReportServiceException	{		IGetParameterDefinitionTask task;		if ( design.getContentType( ) == IViewerReportDesignHandle.RPT_RUNNABLE_OBJECT )		{			// IReportRunnable is specified in IViewerReportDesignHandle.			IReportRunnable runnable = (IReportRunnable) design					.getDesignObject( );			task = ReportEngineService.getInstance( )					.createGetParameterDefinitionTask( runnable );		}		else		{			// report design name is specified in IViewerReportDesignHandle.			try			{				task = getParameterDefinitionTask( design.getFileName( ) );			}			catch ( EngineException e )			{				throw new ReportServiceException( e.getLocalizedMessage( ) );			}		}		return task;	}