} else {
unregisterObject(statMXBeans.remove(jCache));
}
((JCacheConfiguration)jCache.getConfiguration(JCacheConfiguration.class)).setStatisticsEnabled(enabled);
} catch (NotCompliantMBeanException e) {
throw new CacheException(e);
} catch (InstanceAlreadyExistsException e) {
// throw new CacheException(e);
} catch (MBeanRegistrationException e) {
throw new CacheException(e);
} catch (InstanceNotFoundException e) {
// throw new CacheException(e);
} catch (MalformedObjectNameException e) {
throw new CacheException("Illegal ObjectName for Management Bean. " +
"CacheManager=[" + getURI().toString() + "], Cache=[" + jCache.getName() + "]", e);
}
}