{
log.error("Caught exception unbinding from NonSerializableFactory", e);
}
}
CacheManagerLocator locator = CacheManagerLocator.getCacheManagerLocator();
if (locator.getDirectlyRegisteredManager() == this)
locator.deregisterCacheManager();
PojoCacheManagerLocator pclocator = PojoCacheManagerLocator.getCacheManagerLocator();
if (pclocator.getDirectlyRegisteredManager() == this)
pclocator.deregisterCacheManager();