if (stepIdString == null) { throw new WorkflowException("This condition expects a stepId!"); }  int stepId = 0;  if (stepIdString != null) { try { stepId = Integer.parseInt(stepIdString); } catch (Exception ex) { throw new WorkflowException("This condition expects a stepId > 0!"); } }  WorkflowStore store = (WorkflowStore) transientVars.get("store"); List historySteps = store.findHistorySteps(entry.getId());  for (Iterator iterator = historySteps.iterator(); iterator.hasNext();) { Step step = (Step) iterator.next();  if (stepId == (step.getStepId())) {  if (((step.getOwner() != null) && (context.getCaller() != null)) && context.getCaller().equals(step.getOwner())) { return true; } } }  return false;
return isOwnerCondition.passesCondition(transientVars, args, ps);
    public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException {        String stepIdString = (String) args.get("stepId");        WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry");        WorkflowContext context = (WorkflowContext) transientVars.get("context");        if (stepIdString == null) {            throw new WorkflowException("This condition expects a stepId!");        }        int stepId = 0;        if (stepIdString != null) {            try {                stepId = Integer.parseInt(stepIdString);            } catch (Exception ex) {                throw new WorkflowException("This condition expects a stepId > 0!");            }        }        WorkflowStore store = (WorkflowStore) transientVars.get("store");        List historySteps = store.findHistorySteps(entry.getId());        for (Iterator iterator = historySteps.iterator(); iterator.hasNext();) {            Step step = (Step) iterator.next();            if (stepId == (step.getStepId())) {                // check to see if owner same as caller                if (((step.getOwner() != null) && (context.getCaller() != null)) && context.getCaller().equals(step.getOwner())) {                    return true;                }            }        }        return false;    }