docs: Long[] findTaskIds(long partition, TaskState state, boolean inState, Long minId, Integer maxResults) throws Exception {
          Long[] results = null;
          TransactionController tranController = new TransactionController();
          try {
              tranController.preInvoke();
              List<Long> ids = taskStore.findTaskIds(null, null, state, inState, minId, maxResults, null, partition);
              results = ids.toArray(new Long[ids.size()]);
          } catch (Throwable x) {
              tranController.setFailure(x);
          } finally {
              Exception x = tranController.postInvoke(Exception.class);
              if (x != null)
                  throw x;
          }
  
          return results;
      }