Added rewriteAndSaveProcessedDocumentById  operation into DocumentProcessor (with implementation)