ConfigurationManager configurationManager = getConfigurationManager();
try {
ObjectName configName = configurationManager.getConfigObjectName(configID);
return ((Integer)getAttribute(configName, "state")).intValue();
} catch (MalformedObjectNameException e) {
throw new NoSuchConfigException(e);
} catch (InstanceNotFoundException e) {
throw new NoSuchConfigException(e);
} catch (InvalidConfigException e) {
throw (IllegalStateException) new IllegalStateException().initCause(e);
} catch (Exception e) {
throw new NoSuchConfigException(e);
}
}