throw new WorkflowException(e);
return new int[0];
    public int[] getAvailableActions(long id) throws WorkflowException {        try {            return wf.getAvailableActions(id);        } catch (RemoteException e) {            log.error("Error getting available actions", e);            throw new WorkflowException(e);        }    }