if (method.getReturnType().equals(void.class)) { return null; } if (method.getReturnType().equals(int.class)) { return addIntegers(results); } if (method.getReturnType().equals(boolean.class)) { return addBooleans(results); }  return Multicasting.object(proxyFactory, results);
return Multicasting.object(proxyFactory, invocationResults.toArray());
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {        Object[] results = new Object[targets.length];        for (int i = 0; i < targets.length; i++) {            results[i] = method.invoke(targets[i], args);        }        if (method.getReturnType().equals(void.class)) {            return null;        }        if (method.getReturnType().equals(int.class)) {            return addIntegers(results);        }        if (method.getReturnType().equals(boolean.class)) {            return addBooleans(results);        }        return Multicasting.object(proxyFactory, results);    }