format the messy code
Replace all Class.forName() with loader.loadClass()