IGetParameterDefinitionTask task = getParameterDefinitionTask( design, options ); ViewerAttributeBean bean = getViewerAttrBean( options ); if ( bean != null ) task.setParameterValues( bean.getParameters( ) ); task.evaluateQuery( groupName ); Collection selectionList = task.getSelectionListForCascadingGroup( groupName, groupKeys ); return convertEngineParameterSelectionChoice( selectionList );
IGetParameterDefinitionTask task = null; try { task = getParameterDefinitionTask( design, options ); if ( task != null ) { ViewerAttributeBean bean = getViewerAttrBean( options ); if ( bean != null ) task.setParameterValues( bean.getParameters( ) ); task.evaluateQuery( groupName ); Collection selectionList = task .getSelectionListForCascadingGroup( groupName, groupKeys ); return convertEngineParameterSelectionChoice( selectionList ); }  } finally { if ( task != null ) task.close( ); }  return null;
	public Collection getSelectionListForCascadingGroup(			IViewerReportDesignHandle design, String groupName,			Object[] groupKeys, InputOptions options )			throws ReportServiceException	{		IGetParameterDefinitionTask task = getParameterDefinitionTask( design,				options );		ViewerAttributeBean bean = getViewerAttrBean( options );		if ( bean != null )			task.setParameterValues( bean.getParameters( ) );		task.evaluateQuery( groupName );		Collection selectionList = task.getSelectionListForCascadingGroup(				groupName, groupKeys );		return convertEngineParameterSelectionChoice( selectionList );	}