}
Enumeration methods = config.enumerateCallMethod();
//-- For each method defined, we invoke it on marshaller just created.
while (methods.hasMoreElements()) {
CallMethod method = (CallMethod) methods.nextElement();
//-- search for the method to invoke
Method toBeinvoked = getInvokeMethod(objectInvoked.getClass(), method.getName(), method.getValue());
//-- construct the objects representing the arguments of the method
Object[] arguments = getArguments(method.getValue());
//-- Invoke the method and keep a copy of the returned object
returnValues.add(toBeinvoked.invoke(objectInvoked, arguments));
}
return returnValues;