code: private static <T> void foreach(T[] arguments, CallHandler<T> handler, CallInfo callInfo) {
      if (arguments == null || arguments.length == 0) {
        throw new InvalidOperationException("Empty or null array!");
      }
      for (T argument : arguments) {
        handler.action(callInfo, argument);
      }
    }
docs: Utility method to deal with facade methods that accept
  variable length arguments.
  @param arguments Argument array.
  @param handler handler.
  @param callInfo Call info.
  @param <T> Type of objects.