if (systemInfo.getSysUnderTest() != null) {

when jmx is not measured systemUnderTest = null