public AdHocCommand getCommand(String code) {
        return commands.get(code);
    }
Returns the command whose code matches the specified code or {@code null} if none
was found.

@param code the code of the command to find.
@return the command whose code matches the specified code or null if none
        was found.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/AdHocCommandManager.java