public int compare(
     InstantiatedTermDocumentInformation instantiatedTermDocumentInformation,
     InstantiatedTermDocumentInformation instantiatedTermDocumentInformation1) {
   return instantiatedTermDocumentInformation
       .getDocument()
       .getDocumentNumber()
       .compareTo(instantiatedTermDocumentInformation1.getDocument().getDocumentNumber());
 }
 public int compare(Object o1, Object o2) {
   InstantiatedTermDocumentInformation di = (InstantiatedTermDocumentInformation) o1;
   Integer i = (Integer) o2;
   return di.getDocument().getDocumentNumber().compareTo(i);
 }