return null; }  try { return session.find("FROM step IN CLASS " + HibernateCurrentStep.class.getName() + " WHERE step.entry = ?", entry, Hibernate.association(entry.getClass())); } catch (HibernateException e) { log.error("An exception occured", e);  return Collections.EMPTY_LIST; }
    public List findCurrentSteps(long entryId) {        HibernateWorkflowEntry entry;        try {            entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0);        } catch (HibernateException e) {            log.error("An exception occured", e);            return null;        }        try {            return session.find("FROM step IN CLASS " + HibernateCurrentStep.class.getName() + " WHERE step.entry = ?", entry, Hibernate.association(entry.getClass()));        } catch (HibernateException e) {            log.error("An exception occured", e);            return Collections.EMPTY_LIST;        }    }