code: 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");
      }
docs: This method attempts to locate a suitable directory by checking a number of different configuration sources.
  
  1 - serverConfigUserDirPropertyName - This value is used to check it a matching system property has been set. 2 -
  suppliedConfigDir - If a path was specified on the command line it is expected to be passed in as this parameter. 3 -
  serverConfigDirPropertyName - This is a second system property to check.
  
  And finally if none of these match defaultBaseDir specifies the configuration being searched and is appended to the JBoss
  Home value discovered when the utility started.