public Info findPrev(Integer id, boolean bySite) {
   Info info = get(id);
   if (info != null) {
     Integer siteId = bySite ? info.getSite().getId() : null;
     Integer nodeId = bySite ? null : info.getNode().getId();
     return dao.findPrev(siteId, nodeId, id, info.getPublishDate());
   } else {
     return null;
   }
 }
 public void deleteDocuments(final Info[] beans) {
   for (Info bean : beans) {
     template.deleteDocuments(FInfo.id(bean.getId()));
   }
 }