private void hostnamesToSlime(List<HostName> hostnames, Cursor object) {
        if (hostnames.isEmpty()) return;
        // When/if Address becomes richer: add another field (e.g. "addresses") and expand to array of objects
        Cursor addressesArray = object.setArray("additionalHostnames");
        hostnames.forEach(hostname -> addressesArray.addString(hostname.value()));
    }
Outputs the nodes in the given states to a node array
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/NodesResponse.java