docs: private File getWarDirectory(TreeLogger logger) throws UnableToCompleteException {
      File currentDirectory = new File(".");
      try {
        String canonicalPath = currentDirectory.getCanonicalPath();
        logger.log(TreeLogger.INFO, "Current directory in which this generator is executing: "
            + canonicalPath);
        if (canonicalPath.endsWith("war")) {
          return currentDirectory;
        } else {
          return new File("war");
        }
      } catch (IOException e) {
        logger.log(TreeLogger.ERROR, "Failed to get canonical path", e);
        throw new UnableToCompleteException();
      }
    }