docs: @Override
      public int getSessionMode() throws JMSRuntimeException {
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(this, tc, "getSessionMode");
  
          int sessionMode = -1;
          try {
              sessionMode = jmsSession.getAcknowledgeMode();
          } catch (JMSException jmse) {
              throw (JMSRuntimeException) JmsErrorUtils.getJMS2Exception(jmse, JMSRuntimeException.class);
          } finally {
              if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                  SibTr.exit(this, tc, "getSessionMode", new Object[] { sessionMode });
          }
  
          return sessionMode;
      }