public void setDocumentProcessor(Function<? super Document, ? extends Document> documentProcessor) {
    myDocumentProcessor = documentProcessor;
  }
public void setDocumentProcessor(Function<? super Document, ? extends Document> documentProcessor)