code: 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);
      }
docs: Resolves the base directory. If the system property is set that value will be used. Otherwise the path is
  resolved from the home directory.
  
  @param name    the system property name
  @param dirName the directory name relative to the base directory
  
  @return the resolved base directory