code: @Override
      public List<Long> findTaskIds(String pattern, Character escape, TaskState state, boolean inState, Long minId, Integer maxResults) {
          String owner = getOwner();
          if (owner == null)
              return Collections.emptyList(); // empty results
  
          pattern = pattern == null ? null : Utils.normalizeString(pattern);
          List<Long> results = null;
          TransactionController tranController = new TransactionController();
          try {
              tranController.preInvoke();
              results = taskStore.findTaskIds(pattern, escape, state, inState, minId, maxResults, owner, null);
          } catch (Throwable x) {
              tranController.setFailure(x);
          } finally {
              PersistentStoreException x = tranController.postInvoke(PersistentStoreException.class); // TODO proposed spec class
              if (x != null)
                  throw x;
          }
  
          return results;
      }
docs: {@inheritDoc}