private void restartActionsToSlime(Cursor actionsCursor) {
        Cursor restartCursor = actionsCursor.setArray("restart");
        for (RestartActions.Entry entry : actions.getRestartActions().getEntries()) {
            Cursor entryCursor = restartCursor.addObject();
            entryCursor.setString("clusterName", entry.getClusterName());
            entryCursor.setString("clusterType", entry.getClusterType());
            entryCursor.setString("serviceType", entry.getServiceType());
            messagesToSlime(entryCursor, entry.getMessages());
            servicesToSlime(entryCursor, entry.getServices());
        }
    }
Class used to convert a ConfigChangeActions instance to Slime.

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