docs: private String getName(CommandContext ctx, boolean failInBatch) throws CommandLineException {
          final ParsedCommandLine args = ctx.getParsedCommandLine();
          final String name = this.name.getValue(args, true);
          if (name == null) {
              throw new CommandFormatException(this.name + " is missing value.");
          }
          if (!ctx.isBatchMode() || failInBatch) {
              if (!Util.isValidPath(ctx.getModelControllerClient(), Util.DEPLOYMENT_OVERLAY, name)) {
                  throw new CommandFormatException("Deployment overlay " + name + " does not exist.");
              }
          }
          return name;
      }