public static SlimeConfigResponse fromConfigPayload(ConfigPayload payload,
                                                        long generation,
                                                        boolean applyOnRestart,
                                                        PayloadChecksums payloadChecksums) {
        AbstractUtf8Array data = payload.toUtf8Array(true);
        return new SlimeConfigResponse(data,
                                       generation,
                                       applyOnRestart,
                                       payloadChecksums,
                                       CompressionInfo.create(CompressionType.UNCOMPRESSED, data.getByteLength()));
    }
Class for serializing config responses based on {@link com.yahoo.slime.Slime} implementing the {@link ConfigResponse} interface.

@author Ulf Lilleengen
config/src/main/java/com/yahoo/vespa/config/protocol/SlimeConfigResponse.java