public void addCommand(AdHocCommand command) {
        manager.addCommand(command);
        startCommand(command);
    }
Adds a new command to the list of supported ad-hoc commands by this server. The new
command will appear in the discoverable items list and will be executed for those users
with enough permission.

@param command the new ad-hoc command to add.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/AdHocCommandHandler.java