public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence();
public int getEntryState(long id) { try { WorkflowStore store = getPersistence();
    public int getEntryState(long id) throws StoreException {        WorkflowStore store = getPersistence();        return store.findEntry(id).getState();    }