code: private Double getSystemCpuLoad() {
          if (bean instanceof com.sun.management.OperatingSystemMXBean) { //NOSONAR
              return ((com.sun.management.OperatingSystemMXBean) bean).getSystemCpuLoad() * 100.0;  //NOSONAR
          } else {
              return -1.0;
          }
      }
docs: This method uses a Sun specific class (implementation of the Operating System MX Bean.
  @return the CPU system load, or {@literal -1.0} if not available.