ParameterGroupDefinition paramGroup = convertParameterGroup( engineParam, task );
ParameterGroupDefinition paramGroup = convertParameterGroup( engineParam );
	private static Collection convertEngineParameters( Collection params,			IGetParameterDefinitionTask task, boolean includeGroups )	{		if ( params == null )			return Collections.EMPTY_LIST;		List ret = new ArrayList( );		for ( Iterator it = params.iterator( ); it.hasNext( ); )		{			Object o = it.next( );			if ( o instanceof IScalarParameterDefn )			{				IScalarParameterDefn engineParam = (IScalarParameterDefn) o;				ParameterGroupDefinition group = null;				ParameterDefinition param = convertScalarParameter(						engineParam, group, task );				ret.add( param );			}			else if ( o instanceof IParameterGroupDefn )			{				IParameterGroupDefn engineParam = (IParameterGroupDefn) o;				ParameterGroupDefinition paramGroup = convertParameterGroup(						engineParam, task );				ret.add( paramGroup );			}		}		if ( includeGroups )			return ret;		// If we are not including the groups, flatten the results		return flattenGroups( ret );	}