private static void toSlime(ClusterResources resources, Cursor clusterResourcesObject) {
        clusterResourcesObject.setLong("nodes", resources.nodes());
        clusterResourcesObject.setLong("groups", resources.groups());
        NodeResourcesSerializer.toSlime(resources.nodeResources(), clusterResourcesObject.setObject("resources"));
    }
Serializes application information for nodes/v2/application responses

@author bratseth
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/ApplicationSerializer.java