code: public static <T> T load(String resourcePath, BeanSpec spec) {
          return load(resourcePath, spec, false);
      }
docs: Load resource content from given path into variable with
  type specified by `spec`.
  
  @param resourcePath the resource path
  @param spec {@link BeanSpec} specifies the return value type
  @return the resource content in a specified type or `null` if resource not found
  @throws UnexpectedException if return value type not supported