for (Iterator iterator = initialActions.iterator(); iterator.hasNext();) { ActionDescriptor actionDescriptor = (ActionDescriptor) iterator.next();  if (actionDescriptor.getId() == id) { return actionDescriptor; } }
    public ActionDescriptor getAction(int id) {        // check global actions        for (Iterator iterator = globalActions.iterator(); iterator.hasNext();) {            ActionDescriptor actionDescriptor = (ActionDescriptor) iterator.next();            if (actionDescriptor.getId() == id) {                return actionDescriptor;            }        }        // check steps        for (Iterator iterator = steps.iterator(); iterator.hasNext();) {            StepDescriptor stepDescriptor = (StepDescriptor) iterator.next();            ActionDescriptor actionDescriptor = stepDescriptor.getAction(id);            if (actionDescriptor != null) {                return actionDescriptor;            }        }        return null;    }