Attempts to revert a given document to a given old version.
protected DocumentRepository documentRepository;
//the first parameter, documentUniqueKey, identifies the version of the document file (for example the current version) to replace
//the second parameter, oldKey, identifies the version of the document file to revert to (sets this file to the current version)
documentRepository.revert("DOCU_2902", "DOCU_2892");