code: private <T> T getEnvConfig(Map<String, ?> configs, String key, Class<T> type) {
      if(configs.containsKey(key)) {
        Object config = configs.get(key);
        if(type.isAssignableFrom(config.getClass())) {
          return type.cast(config);
        }
      }
      return null;
    }
docs: Helper method used to retrieve the value from a given map if it matches the type specified.
  
  @param configs The map to pull from.
  @param key The key to pull.
  @param type The expected type of the value.
  @return