catch (NoSuchModelObjectException e) { return null; }
    public State getCurrentState(Workflow workflow)    {        try        {            StateModel model = getStateModelDao().getCurrentState( workflow.getModel() );            State state = workflow.getProcess().getState( model.getName() );            return state;        }        catch (NoSuchStateException e)        {            throw new WorkflowIntegrityException( workflow,                                                  e );        }        catch (NoSuchModelObjectException e)        {            return null;        }    }