docs: private MediaType getStorageMediaType(Configuration configuration, boolean embeddedMode) {
        EncodingConfiguration encodingConfiguration = configuration.encoding();
        ContentTypeConfiguration contentTypeConfiguration = isKey ? encodingConfiguration.keyDataType() : encodingConfiguration.valueDataType();
        // If explicitly configured, use the value provided
        if (contentTypeConfiguration.isMediaTypeChanged()) {
           return contentTypeConfiguration.mediaType();
        }
        // Indexed caches started by the server will assume application/protostream as storage media type
        if (!embeddedMode && configuration.indexing().index().isEnabled() && contentTypeConfiguration.mediaType() == null) {
           return MediaType.APPLICATION_PROTOSTREAM;
        }
        return MediaType.APPLICATION_UNKNOWN;
     }