criteria.add(Restrictions.eq("uuid", nodeIdentifier));
criteria.add(Restrictions.eq("date", date != null ? Long.valueOf(date.getTime()) : null));
criteria.add(Restrictions.eq("propertyName", propertyName));
criteria.add(Restrictions.eq("action", action));
HistoryEntry historyEntry = (HistoryEntry) criteria.uniqueResult();
// Found update object
if (historyEntry != null) {
// history entry already exists, we will not update it.
if (logger.isDebugEnabled()) {
logger.debug("Content history entry " + historyEntry + " already exists, ignoring...");