historySteps.add(simpleStep);
historySteps.add(0, simpleStep);
    public void moveToHistory(Step step) {        List currentSteps = (List) currentStepsCache.get(new Long(step.getEntryId()));        List historySteps = (List) historyStepsCache.get(new Long(step.getEntryId()));        if (historySteps == null) {            historySteps = new ArrayList();            historyStepsCache.put(new Long(step.getEntryId()), historySteps);        }        SimpleStep simpleStep = (SimpleStep) step;        for (Iterator iterator = currentSteps.iterator(); iterator.hasNext();) {            Step currentStep = (Step) iterator.next();            if (simpleStep.getId() == currentStep.getId()) {                iterator.remove();                historySteps.add(simpleStep);                break;            }        }    }