public String commandTopic(String command){
  if (command == null) {
    command="+";
  }
  return cmdTopic.replace("{COMMAND}",command);
}

public String commandTopic ( String command ) { if ( command == null ) { command = "+" ; } return cmdTopic . replace ( "{COMMAND}" , command ) ; }
get the mqtt topic for a command .
