DataSetParameters parameters = dataSetDesign.getParameters( ); DataSetParameters dataSetParameter = null;
if ( md == null || dataSetDesign == null ) return; DataSetParameters dataSetParameter = DesignSessionUtil.toDataSetParametersDesign( md, ParameterMode.IN_LITERAL );
	private static void mergeParameterMetaData( DataSetDesign dataSetDesign,			IParameterMetaData md ) throws OdaException	{		DataSetParameters parameters = dataSetDesign.getParameters( );		DataSetParameters dataSetParameter = null;		dataSetParameter = DesignSessionUtil.toDataSetParametersDesign( md,					ParameterMode.IN_LITERAL );		if ( parameters == null				|| parameters.getParameterDefinitions( ).size( ) == 0 )		{			if ( dataSetParameter != null )			{				Iterator iter = dataSetParameter.getParameterDefinitions( )						.iterator( );				while ( iter.hasNext( ) )				{					ParameterDefinition defn = (ParameterDefinition) iter.next( );					proccessParamDefn( defn, dataSetParameter );				}			}			dataSetDesign.setParameters( dataSetParameter );		}		else		{			int designParamSize = 0;			if ( dataSetParameter != null )				designParamSize = dataSetParameter.getParameterDefinitions( )						.size( );			int dataParamSize = parameters.getParameterDefinitions( ).size( );			while ( designParamSize > dataParamSize )			{				ParameterDefinition defn = (ParameterDefinition) dataSetParameter.getParameterDefinitions( )						.get( dataParamSize );				proccessParamDefn( defn, parameters );				parameters.getParameterDefinitions( ).add( defn );				designParamSize--;			}		}	}