code: public EventServiceLog updateEventServiceLog(EventServiceLog eventServiceLog) {
          if (eventServiceLog != null) {
              final EventServiceLog log = getObjectById(EventServiceLog.class, eventServiceLog.getId());
              if (log != null) {
                  pm.currentTransaction().begin();
                  log.setCompleted(new Timestamp(new Date().getTime()));
                  pm.currentTransaction().commit();
                  return pm.getObjectById(EventServiceLog.class, log.getId());
              }
          }
          return null;
      }
docs: Updates a EventServiceLog.
  @param eventServiceLog the EventServiceLog to update
  @return an updated EventServiceLog