docs: protected boolean _queueWithRetries(Connection conn, IQueueMessage<ID, DATA> msg,
              int numRetries, int maxRetries) {
          try {
              Date now = new Date();
              msg.setNumRequeues(0).setQueueTimestamp(now).setTimestamp(now);
              return putToQueueStorage(conn, msg);
          } 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 {
                      incRetryCounter("_queueWithRetries");
                      return _queueWithRetries(conn, msg, numRetries + 1, maxRetries);
                  }
              }
              throw de;
          } catch (Exception e) {
              throw e instanceof QueueException ? (QueueException) e : new QueueException(e);
          }
      }