Isn't it dangerous to keep reference to a class-loader? What if class-loader is not used anymore, webapp is undeployed for example?