return store.findEntry(id).getState();
return store.findEntry(id).getState(); } catch (StoreException e) { log.error("Error checking instance state for instance #" + id, e); }  return WorkflowEntry.UNKNOWN;
    public int getEntryState(long id) throws StoreException {        WorkflowStore store = getPersistence();        return store.findEntry(id).getState();    }