public static Object[] getArgumentValues(Parameter[] expectedArgs, String[] availableArgNames, Object[] availableArgValues) {
		Map<String, Object> availableArgs = new HashMap<String, Object>(availableArgNames.length);
		for (int i=0;i<availableArgNames.length;i++) {
			availableArgs.put(availableArgNames[i], availableArgValues[i]);
		}
		Object[] expectedArgValues = new Object[expectedArgs.length];
		for (int i=0;i<expectedArgs.length;i++) {
			Object argValue = availableArgs.get(expectedArgs[i].getName());
			expectedArgValues[i] = argValue;
		}
		return expectedArgValues;
	}
public static Object [ ] getArgumentValues ( Parameter [ ] expectedArgs , String [ ] availableArgNames , Object [ ] availableArgValues ) { Map < String , Object > availableArgs = new HashMap < String , Object > ( availableArgNames . length ) ; for ( int i = 0 ; i < availableArgNames . length ; i ++ ) { availableArgs . put ( availableArgNames [ i ] , availableArgValues [ i ] ) ; } Object [ ] expectedArgValues = new Object [ expectedArgs . length ] ; for ( int i = 0 ; i < expectedArgs . length ; i ++ ) { Object argValue = availableArgs . get ( expectedArgs [ i ] . getName ( ) ) ; expectedArgValues [ i ] = argValue ; } return expectedArgValues ; }
@param expectedArgs - arguments the server is expecting, as defined in the idd
@param availableArgNames - names of arguments supplied by the client
@param availableArgValues - values of arguments supplied by the client
@throws CougarValidationException if a mandatory parameter is not supplied
@return