if (isActionAvailable(action, transientVars, ps)) {
if (isActionAvailable(action, transientVars, ps, step.getStepId())) {
    private Step getCurrentStep(WorkflowDescriptor wfDesc, int actionId, List currentSteps, Map transientVars, PropertySet ps) throws WorkflowException {        if (currentSteps.size() == 1) {            return (Step) currentSteps.get(0);        }        for (Iterator iterator = currentSteps.iterator(); iterator.hasNext();) {            Step step = (Step) iterator.next();            ActionDescriptor action = wfDesc.getStep(step.getStepId()).getAction(actionId);            //$AR init            if (isActionAvailable(action, transientVars, ps)) {                return step;            }            //$AR end        }        return null;    }