*
* @return a new Map with String keys and values containing the arguments
*/
public Map getArgumentsAsMap()
{
PropertyIterator iter = getArguments().iterator();
Map argMap = new HashMap();
while (iter.hasNext())
{
Argument arg = (Argument) iter.next().getObjectValue();
// Because CollectionProperty.mergeIn will not prevent adding two
// properties of the same name, we need to select the first value so
// that this element's values prevail over defaults provided by configuration
// elements:
if (! argMap.containsKey(arg.getName())) argMap.put(arg.getName(), arg.getValue());