public static synchronized DiagnosticCommandMBean getDiagnosticCommandMBean() {
   // Remote Diagnostic Commands may not be supported
   if (hsDiagCommandMBean == null && jvm.isRemoteDiagnosticCommandsSupported()) {
     hsDiagCommandMBean = new DiagnosticCommandImpl(jvm);
   }
   return hsDiagCommandMBean;
 }
 public static synchronized CompilationMXBean getCompilationMXBean() {
   if (compileMBean == null && jvm.getCompilerName() != null) {
     compileMBean = new CompilationImpl(jvm);
   }
   return compileMBean;
 }