@Override
    public void stop() {
        super.stop();
        infoHandler.removeServerNodeInfoProvider(NAMESPACE);
        itemsHandler.removeServerNodeInfoProvider(NAMESPACE);
        // Stop commands
        for (AdHocCommand command : manager.getCommands()) {
            stopCommand(command);
        }
    }
Manager that keeps the list of ad-hoc commands and processing command requests.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/AdHocCommandHandler.java