private void stopHttpAdaptor() {
    if (!agentConfig.isHttpEnabled()) {
      return;
    }

    // stop the adaptor...
    try {
      httpAdaptor.stop();
    } catch (Exception e) {
      logger.warn(e.getMessage(), e);
    }

    try {
      MBeanUtils.unregisterMBean(getHttpAdaptorName());
      MBeanUtils.unregisterMBean(getXsltProcessorName());
    } catch (MalformedObjectNameException e) {
      logger.warn(e.getMessage(), e);
    }
  }
Stops the HttpAdaptor and its XsltProcessor. Unregisters the associated MBeans.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java