static ConfigResponseFactory create(ConfigserverConfig configserverConfig) {
        switch (configserverConfig.payloadCompressionType()) {
            case LZ4:
                return new LZ4ConfigResponseFactory();
            case UNCOMPRESSED:
                return new UncompressedConfigResponseFactory();
            default:
                throw new IllegalArgumentException("Unknown payload compression type " + configserverConfig.payloadCompressionType());
        }
    }
Represents a component that creates config responses from a payload. Different implementations
can do transformations of the payload such as compression.

@author Ulf Lilleengen
configserver/src/main/java/com/yahoo/vespa/config/server/rpc/ConfigResponseFactory.java