docs: @SuppressWarnings("unchecked")
  	public static <T extends EntityModel<S>, S> PagedModel<T> wrap(Iterable<S> content, PageMetadata metadata) {
  
  		Assert.notNull(content, "Content must not be null!");
  		ArrayList<T> resources = new ArrayList<>();
  
  		for (S element : content) {
  			resources.add((T) new EntityModel<>(element));
  		}
  
  		return new PagedModel<>(resources, metadata);
  	}