code: public void setPriority(int newPriority)
      {
          JsMessage localMsg = getJSMessage(true);
          msgPriority = newPriority;
          localMsg.setPriority(newPriority);
      }
docs: Set the message priority and cache it