Hooked the ExtensionManager into the DynamicClassLoader and ClassDiscovery classes.