}
public void unloadGBean(String shortName, Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException {
GBeanInstance gbeanInstance = registry.getGBeanInstance(shortName, type);
AbstractName name = gbeanInstance.getAbstractName();
gbeanInstance.die();
registry.unregister(name);
}
public int getGBeanState(ObjectName name) throws GBeanNotFoundException {
GBeanInstance gbeanInstance = registry.getGBeanInstance(name);