private boolean resourceWasFound(Reply r) {
        if (r instanceof RemoveDocumentReply) {
            return ((RemoveDocumentReply) r).wasFound();
        }
        if (r instanceof UpdateDocumentReply) {
            return ((UpdateDocumentReply) r).wasFound();
        }
        if (r instanceof GetDocumentReply) {
            return ((GetDocumentReply) r).getLastModified() > 0;
        }
        return false;
    }
Encapsulated logic for merging replies from 1-n related DocumentProtocol messages.
For internal use only. Not multithread safe.
documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/ReplyMerger.java