code: public static Environment of(@NonNull String location) {
          if (location.startsWith(PREFIX_CLASSPATH)) {
              location = location.substring(PREFIX_CLASSPATH.length());
              return loadClasspath(location);
          } else if (location.startsWith(PREFIX_FILE)) {
              location = location.substring(PREFIX_FILE.length());
              return of(new File(location));
          } else if (location.startsWith(PREFIX_URL)) {
              location = location.substring(PREFIX_URL.length());
              try {
                  return of(new URL(location));
              } catch (MalformedURLException e) {
                  log.error("", e);
                  return null;
              }
          } else {
              return loadClasspath(location);
          }
      }
docs: Load environment by location
  
  @param location environment location
  @return return Environment instance