public static void unregisterMbeans(MBeanServer mBeanServer){
  try {
    mBeanServer.unregisterMBean(Log4jMXBeanImp.getObjectName());
    mBeanServer.unregisterMBean(ExceptionMXBeanImp.getObjectName());
    mBeanServer.unregisterMBean(ExceptionDeltaMXBeanImp.getObjectName());
    mBeanServer.unregisterMBean(Log4jDeltaMXBeanImp.getObjectName());
    mBeanServer.unregisterMBean(JamonMXBeanImp.getObjectName());
    mBeanServer.unregisterMBean(HttpStatusMXBeanImp.getObjectName());
    mBeanServer.unregisterMBean(HttpStatusDeltaMXBeanImp.getObjectName());
    unregisterGcMXBean(mBeanServer);
    unregisterMbeansFromPropsFile(mBeanServer);
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}

public static void unregisterMbeans ( MBeanServer mBeanServer ) { try { mBeanServer . unregisterMBean ( Log4jMXBeanImp . getObjectName ( ) ) ; mBeanServer . unregisterMBean ( ExceptionMXBeanImp . getObjectName ( ) ) ; mBeanServer . unregisterMBean ( ExceptionDeltaMXBeanImp . getObjectName ( ) ) ; mBeanServer . unregisterMBean ( Log4jDeltaMXBeanImp . getObjectName ( ) ) ; mBeanServer . unregisterMBean ( JamonMXBeanImp . getObjectName ( ) ) ; mBeanServer . unregisterMBean ( HttpStatusMXBeanImp . getObjectName ( ) ) ; mBeanServer . unregisterMBean ( HttpStatusDeltaMXBeanImp . getObjectName ( ) ) ; unregisterGcMXBean ( mBeanServer ) ; unregisterMbeansFromPropsFile ( mBeanServer ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
unregister all jamon related mbeans
