docs: private static File getDataDir() {
          File rval = null;
  
          // First check to see if a data directory has been explicitly configured via system property
          String dataDir = System.getProperty("apiman.bootstrap.data_dir"); //$NON-NLS-1$
          if (dataDir != null) {
              rval = new File(dataDir);
          }
  
          // If that wasn't set, then check to see if we're running in wildfly/eap
          if (rval == null) {
              dataDir = System.getProperty("jboss.server.data.dir"); //$NON-NLS-1$
              if (dataDir != null) {
                  rval = new File(dataDir, "bootstrap"); //$NON-NLS-1$
              }
          }
  
          // If that didn't work, try to locate a tomcat data directory
          if (rval == null) {
              dataDir = System.getProperty("catalina.home"); //$NON-NLS-1$
              if (dataDir != null) {
                  rval = new File(dataDir, "data/bootstrap"); //$NON-NLS-1$
              }
          }
  
          // If all else fails, just let it return null
          return rval;
      }