if (resultMerger != null) {
List<Object> rets = new ArrayList<Object>(resultList.size());
for(Result r : resultList) {
rets.add(r.getValue());
}
result = resultMerger.merge(
rets.toArray((Object[])Array.newInstance(returnType, 0)));
} else {
throw new RpcException( "There is no merger to merge result." );
}
}