@Override
    public void validate(Context context) {
        var contentClustersWithRemoteStorage = context.model().allocatedHosts().getHosts().stream()
                .filter(hostSpec -> hostSpec.realResources().storageType() == remote)
                .map(HostSpec::membership)
                .filter(Optional::isPresent)
                .map(Optional::get)
                .filter(membership -> membership.cluster().type() == content)
                .map(membership -> membership.cluster().id().value())
                .collect(Collectors.toSet());

        for (var cluster : context.model().getSearchClusters()) {
            if ( ! contentClustersWithRemoteStorage.contains(cluster.getClusterName())) continue;

            for (var schema : cluster.schemas().values()) {
                validatePagedAttributes(context.deployState().getDeployLogger(), cluster.getClusterName(), schema.fullSchema());
            }
        }
    }
Validates and logs a warning (with deploy logger) when paged attributes are used in a
content cluster with nodes with remote storage

@author hmusum
config-model/src/main/java/com/yahoo/vespa/model/application/validation/PagedAttributesRemoteStorageValidator.java