MediaType/MediaTypeManager.php
public function getInstanceByName($name)
    {
        $mts = $this->getMediaTypes();

        if (isset($mts[$name])) {
            return new $mts[$name]();
        }

        return;
    }
public function getInstanceByName($name)
    {
        $mts = $this->getMediaTypes();

        if (isset($mts[$name])) {
            return new $mts[$name]();
        }

        return;
    }
@param $name

@return MediaTypeInterface|null