@Override
    public int hashCode() {
        return Objects.hash(document, getCondition());
    }
Base this DocumentPut on another, but use newDocument as the Document.
document/src/main/java/com/yahoo/document/DocumentPut.java