return Context.toObject(v.toArray(), global);
Object[] a = v.toArray(); for (int i=0; i<a.length; i++) { a[i] = processXmlRpcArgument(a[i]); } return Context.toObject(a, global);
    public Object processXmlRpcArgument (Object what, Context cx) throws Exception {        if (what == null)            return null;        if (what instanceof Vector) {            Vector v = (Vector) what;            return Context.toObject(v.toArray(), global);        }        if (what instanceof Hashtable) {            Hashtable t = (Hashtable) what;            return Context.toObject(new SystemMap(t), global);        }        if (what instanceof String)            return what;        if (what instanceof Number)            return what;        if (what instanceof Boolean)            return what;        if (what instanceof Date) {            Date d = (Date) what;            Object[] args = { new Long(d.getTime()) };            return cx.newObject(global, "Date", args);        }        return Context.toObject(what, global);    }