docs: public static MBeanServerConnection getMBeanServerConnection(Process p, boolean startAgent) {
          try {
              final JMXServiceURL serviceURL = getLocalConnectorAddress(p, startAgent);
              final JMXConnector connector = JMXConnectorFactory.connect(serviceURL);
              final MBeanServerConnection mbsc = connector.getMBeanServerConnection();
              return mbsc;
          } catch (Exception e) {
              throw new RuntimeException(e);
          }
      }