code: public function getInstanceByName($name)
      {
          $mts = $this->getMediaTypes();
  
          if (isset($mts[$name])) {
              return new $mts[$name]();
          }
  
          return;
      }
docs: @param $name
  
  @return MediaTypeInterface|null