code: public <T> ForeachRddFunction<T> foreachRddFunction(Class<? extends VoidFunction<T>> springBeanClass) {
          return new ForeachRddFunction<>(voidFunction(springBeanClass));
      }
docs: Create a new ForeachRddFunction, which implements Spark's VoidFunction interface.