original_string: public function getRenditionDocument(OperationContextInterface $context = null)
      {
          $renditionDocumentId = $this->getRenditionDocumentId();
          if (empty($renditionDocumentId)) {
              return null;
          }
  
          if ($context === null) {
              $context = $this->session->getDefaultContext();
          }
  
          $document = $this->session->getObject($this->session->createObjectId($renditionDocumentId), $context);
  
          return $document instanceof DocumentInterface ? $document : null;
      }
code: public function getRenditionDocument(OperationContextInterface $context = null)
      {
          $renditionDocumentId = $this->getRenditionDocumentId();
          if (empty($renditionDocumentId)) {
              return null;
          }
  
          if ($context === null) {
              $context = $this->session->getDefaultContext();
          }
  
          $document = $this->session->getObject($this->session->createObjectId($renditionDocumentId), $context);
  
          return $document instanceof DocumentInterface ? $document : null;
      }
code_tokens: public function getRenditionDocument ( OperationContextInterface $ context = null ) { $ renditionDocumentId = $ this -> getRenditionDocumentId ( ) ; if ( empty ( $ renditionDocumentId ) ) { return null ; } if ( $ context === null ) { $ context = $ this -> session -> getDefaultContext ( ) ; } $ document = $ this -> session -> getObject ( $ this -> session -> createObjectId ( $ renditionDocumentId ) , $ context ) ; return $ document instanceof DocumentInterface ? $ document : null ; }
docstring: Returns the rendition document using the provides OperationContext if the rendition is a stand-alone document.
  
  @param OperationContextInterface|null $context
  @return DocumentInterface|null the rendition document or <code>null</code> if there is no rendition document
docstring_tokens: Returns the rendition document using the provides OperationContext if the rendition is a stand - alone document .