protected int compareDocuments(Document d1, Document d2) { return d1.getModifiedDatetime().compareTo(d2.getModifiedDatetime()); }