code: public function getLastCatItemOutput()
      {
          $sessionId = $this->getTestSession()->getSessionId();
  
          $itemOutput = $this->getServiceManager()->get(ExtendedStateService::SERVICE_ID)->getCatValue(
              $sessionId,
              $this->getCatSection()->getSectionId(),
              'cat-item-output'
          );
  
          $output = [];
  
          if (!is_null($itemOutput)) {
              $rawData = json_decode($itemOutput, true);
  
              foreach ($rawData as $result) {
                  /** @var ItemResult $itemResult */
                  $itemResult = ItemResult::restore($result);
                  $output[$itemResult->getItemRefId()] = $itemResult;
              }
          }
  
          return $output;
      }
docs: Get Last CAT Item Output.
  
  Get the last CAT Item Result from memory.