{
log.warn("Error in beforeUnegisterClassLoader: " + this + " classLoader=" + classLoader.toLongString(), t);
}
BaseClassLoaderPolicy policy = classLoader.getPolicy();
ShutdownPolicy shutdownPolicy = determineShutdownPolicy(policy);
boolean shutdownNow = (ShutdownPolicy.UNREGISTER == shutdownPolicy);
if (shutdownNow)
policy.unsetClassLoaderDomain(this);