private static void servicesToSlime(Cursor entryCursor, Set<ServiceInfo> services) {
        Cursor servicesCursor = entryCursor.setArray("services");
        for (ServiceInfo service : services) {
            Cursor serviceCursor = servicesCursor.addObject();
            serviceCursor.setString("serviceName", service.getServiceName());
            serviceCursor.setString("serviceType", service.getServiceType());
            serviceCursor.setString("configId", service.getConfigId());
            serviceCursor.setString("hostName", service.getHostName());
        }
    }
Class used to convert a ConfigChangeActions instance to Slime.

@author geirst
configserver/src/main/java/com/yahoo/vespa/config/server/configchange/ConfigChangeActionsSlimeConverter.java