/// <summary>
        /// Creates a new instance of the <see cref="PayloadMetadataParameterInterpreter"/> class.
        /// </summary>
        /// <param name="format">The response format.</param>
        /// <returns>A new instance of the <see cref="PayloadMetadataParameterInterpreter"/> class.</returns>
        internal static PayloadMetadataParameterInterpreter Create(ODataFormatWithParameters format)
        {
            ODataFormat odataFormat       = format == null ? null : format.Format;
            string      rawParameterValue = format == null ? null : format.GetParameterValue(MediaTypeParameterName);

            return(new PayloadMetadataParameterInterpreter(odataFormat, rawParameterValue));
        }
        public void Init()
        {
            // no media type specified
            this.metadataFormat = new ODataFormatWithParameters(ODataFormat.Metadata);

            // media type with parameters
            this.jsonLightFormat = new ODataFormatWithParameters(ODataFormat.Json, "application/atom+xml;odata.metadata=minimal");
        }