Refactored support for setting up the Classloader.