docs: protected File assertDirectory(String dirName, String locName) {
          File d = new File(dirName);
          if (d.isFile())
              throw new LocationException("Path must reference a directory", MessageFormat.format(BootstrapConstants.messages.getString("error.specifiedLocation"), locName,
                                                                                                  d.getAbsolutePath()));
          return d;
      }