code: @Override
      public void stopService() {
          try {
              if (m_webservice != null) {
                  m_webservice.stop();
              }
          } catch (Exception e) {
              m_logger.warn("WebService stop failed", e);
          }
      }
docs: Shutdown the REST Service