docs: public static ResourcePoolsBuilder newResourcePoolsBuilder(ResourcePools pools) {
      ResourcePoolsBuilder poolsBuilder = new ResourcePoolsBuilder();
      for (ResourceType<?> currentResourceType : pools.getResourceTypeSet()) {
        poolsBuilder = poolsBuilder.with(pools.getPoolForResource(currentResourceType));
      }
      return poolsBuilder;
    }