* is returned. IllegalActionException is thrown if there is any
* error in calling the method.
*/
private PyObject _invokeMethod(String methodName, Object[] args)
throws IllegalActionException {
PyMethod method = (PyMethod) _methodMap.get(methodName);
PyObject returnValue = null;
if (method != null) {
try {
if ((args == null) || (args.length == 0)) {
returnValue = method.__call__();
} else {
PyObject[] convertedArgs = new PyObject[args.length];
for (int i = 0; i < args.length; ++i) {
if (!(args[i] instanceof PyObject)) {