code: @ShellMethod(key = "generate-yaml", value = "Generate a YAML registered service definition")
      public static void generateYaml(
          @ShellOption(value = {"file"},
              help = "Path to the JSON service definition file") final String file,
          @ShellOption(value = {"destination"},
              help = "Path to the destination YAML service definition file") final String destination) {
          if (StringUtils.isBlank(file)) {
              LOGGER.warn("File must be specified");
              return;
          }
  
          val filePath = new File(file);
          val result = StringUtils.isBlank(destination) ? null : new File(destination);
          generate(filePath, result);
      }
docs: Validate service.
  
  @param file        the file
  @param destination the destination