code: protected boolean _requeueWithRetries(Connection conn, IQueueMessage<Long, byte[]> msg,
              int numRetries, int maxRetries) {
          try {
              int numRows = getJdbcHelper().execute(conn, SQL_REQUEUE, new Date(), getQueueName(),
                      msg.getId());
              return numRows > 0;
          } catch (DuplicatedValueException dve) {
              LOGGER.warn(dve.getMessage(), dve);
              return true;
          } catch (DaoException de) {
              if (de.getCause() instanceof DuplicateKeyException) {
                  LOGGER.warn(de.getMessage(), de);
                  return true;
              }
              if (de.getCause() instanceof ConcurrencyFailureException) {
                  if (numRetries > maxRetries) {
                      throw new QueueException(de);
                  } else {
                      /*
                       * call _requeueSilentWithRetries(...) here is correct
                       * because we do not want message's num-requeues is
                       * increased with every retry
                       */
                      incRetryCounter("_requeueWithRetries");
                      return _requeueSilentWithRetries(conn, msg, numRetries + 1, maxRetries);
                  }
              }
              throw de;
          } catch (Exception e) {
              throw e instanceof QueueException ? (QueueException) e : new QueueException(e);
          }
      }
docs: {@inheritDoc}