private void loadModule(String module) {
        try {
            Class<Module> modClass = (Class<Module>) loader.loadClass(module);
            Module mod = modClass.newInstance();
            this.modules.put(modClass, mod);
        }
        catch (Exception e) {
            e.printStackTrace();
            logger.error(LocaleUtils.getLocalizedString("admin.error"), e);
        }
    }
Loads a module.

@param module the name of the class that implements the Module interface.
xmppserver/src/main/java/org/jivesoftware/openfire/XMPPServer.java