docs: private File buildDirPath(final String serverConfigUserDirPropertyName, final String suppliedConfigDir,
              final String serverConfigDirPropertyName, final String serverBaseDirPropertyName, final String defaultBaseDir) {
          String propertyDir = System.getProperty(serverConfigUserDirPropertyName);
          if (propertyDir != null) {
              return new File(propertyDir);
          }
          if (suppliedConfigDir != null) {
              return new File(suppliedConfigDir);
          }
          propertyDir = System.getProperty(serverConfigDirPropertyName);
          if (propertyDir != null) {
              return new File(propertyDir);
          }
  
          propertyDir = System.getProperty(serverBaseDirPropertyName);
          if (propertyDir != null) {
              return new File(propertyDir);
          }
  
          return new File(new File(stateValues.getOptions().getJBossHome(), defaultBaseDir), "configuration");
      }