code: @Override
      public int removeTimers(String appName, String pattern, Character escape, TaskState state, boolean inState) throws Exception {
          pattern = pattern == null ? null : Utils.normalizeString(pattern);
          int updateCount = 0;
          TransactionController tranController = new TransactionController();
          try {
              tranController.preInvoke();
              updateCount = taskStore.remove(pattern, escape, state, inState, appName);
          } catch (Throwable x) {
              tranController.setFailure(x);
          } finally {
              Exception x = tranController.postInvoke(Exception.class);
              if (x != null)
                  throw x;
          }
  
          return updateCount;
      }
docs: {@inheritDoc}