code: public <R> SingleOutputStreamOperator<R> process(final PatternProcessFunction<T, R> patternProcessFunction) {
  		final TypeInformation<R> returnType = TypeExtractor.getUnaryOperatorReturnType(
  			patternProcessFunction,
  			PatternProcessFunction.class,
  			0,
  			1,
  			TypeExtractor.NO_INDEX,
  			builder.getInputType(),
  			null,
  			false);
  
  		return process(patternProcessFunction, returnType);
  	}
docs: Applies a process function to the detected pattern sequence. For each pattern sequence the
  provided {@link PatternProcessFunction} is called. In order to process timed out partial matches as well one can
  use {@link TimedOutPartialMatchHandler} as additional interface.
  
  @param patternProcessFunction The pattern process function which is called for each detected
  pattern sequence.
  @param <R> Type of the resulting elements
  @return {@link DataStream} which contains the resulting elements from the pattern process
  function.