if ((actions == null) || (actions.size() == 0)) {
if (actions == null || actions.size() == 0) {
    protected List getAvailableAutoActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException {        List l = new ArrayList();        StepDescriptor s = wf.getStep(step.getStepId());        if (s == null) {            log.warn("getAvailableAutoActionsForStep called for non-existent step Id #" + step.getStepId());            return l;        }        List actions = s.getActions();        if ((actions == null) || (actions.size() == 0)) {            return l;        }        for (Iterator iterator2 = actions.iterator(); iterator2.hasNext();) {            ActionDescriptor action = (ActionDescriptor) iterator2.next();            //check auto            if (action.getAutoExecute()) {                if (isActionAvailable(action, transientVars, ps, s.getId())) {                    l.add(new Integer(action.getId()));                }            }        }        return l;    }