try { session.save(currentStep);
try { Transaction tx = session.beginTransaction(); session.save(currentStep); tx.commit();
    public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) {        HibernateCurrentStep currentStep = (HibernateCurrentStep) step;        currentStep.setActionId(actionId);        currentStep.setFinishDate(finishDate);        currentStep.setStatus(status);        currentStep.setCaller(caller);        try {            session.save(currentStep);            return currentStep;        } catch (HibernateException e) {            log.error("An exception occured", e);            return null;        }    }