public function createReadContext($stream)
    {
        $reader   = $this->getStreamReader();
        $registry = $this->extensionRegistry;
        $context  = new ReadContext($stream, $reader, $registry);

        return $context;
    }