code: public <T, R> FlatMapFunction<T, R> flatMapFunction(Class<? extends FlatMapFunction<T, R>> springBeanClass) {
          return new SpringFlatMapFunction<>(springConfigurationClass, springBeanClass);
      }
docs: Create a new SpringFlapMapFunction, which implements Spark's FlatMapFunction interface.