docs: Path resolveBaseDir(final String name, final String dirName) {
          final String currentDir = SecurityActions.getPropertyPrivileged(name);
          if (currentDir == null) {
              return jbossHomeDir.resolve(dirName);
          }
          return Paths.get(currentDir);
      }