code: private void validatePriority(int x) throws JMSException {
          // Priority must be in the range 0-9
          if ((x < 0) || (x > 9)) {
              throw (JMSException) JmsErrorUtils.newThrowable(
                                                              JMSException.class,
                                                              "INVALID_VALUE_CWSIA0068",
                                                              new Object[] { "JMSPriority", "" + x },
                                                              tc
                              );
          }
      }
docs: This method carries out validation on the priority field.
  
  @param x