code: public <T1, R> Function<T1, R>  function(Class<? extends Function<T1, R>> springBeanClass) {
          return new SpringFunction<>(springConfigurationClass, springBeanClass);
      }
docs: Create a new SpringFunction, which implements Spark's Function interface.