public void write(ApplicationId applicationId, List<ContainerEndpoint> endpoints) {
        var slime = ContainerEndpointSerializer.endpointListToSlime(endpoints);
        try {
            var bytes = SlimeUtils.toJsonBytes(slime);
            curator.set(containerEndpointsPath(applicationId), bytes);
        } catch (IOException e) {
            throw new UncheckedIOException("Error writing endpoints of: " + applicationId, e);
        }
    }
Persists assignment of rotations to an application in ZooKeeper.

The entries are {@link ContainerEndpoint} instances, which keep track of the container
cluster that is the target, the endpoint name, and the rotation used to
give availability to that cluster.

@author ogronnesby
configserver/src/main/java/com/yahoo/vespa/config/server/tenant/ContainerEndpointsCache.java