public static JsonObject matchCommand(JsonObject commandsJson, String commandName, String storageService) {
        for (String key : commandsJson.keySet())  {
            if (key.equals(storageService)) {
                JsonObject commandCats = commandsJson.getJsonObject(key);
                if (commandCats.containsKey(commandName)) {
                    return commandCats.getJsonObject(commandName);
                }                
            }
        }
        return null;
    }
public static JsonObject matchCommand ( JsonObject commandsJson , String commandName , String storageService ) { for ( String key : commandsJson . keySet ( ) ) { if ( key . equals ( storageService ) ) { JsonObject commandCats = commandsJson . getJsonObject ( key ) ; if ( commandCats . containsKey ( commandName ) ) { return commandCats . getJsonObject ( commandName ) ; } } } return null ; }
Finds out if a command is supported by Doradus
@param commandsJson
@param commandName
@param storageService
@return