code: public ResourceRepository<Resource, String> getRepositoryForPath(String resourceType) {
          init();
  
          ResourceInformation resourceInformation =
                  new ResourceInformation(
                          moduleRegistry.getTypeParser()
                          , Resource.class
                          , resourceType
                          , null
                          , null
                          , PagingSpec.class
                  );
          return (ResourceRepository<Resource, String>) decorate(new ResourceRepositoryStubImpl<>(this, Resource.class, resourceInformation, urlBuilder));
      }
docs: Generic access using {@link Resource} class without type mapping.