code: public function getCurrentAssessmentItemRef()
      {
          if ($this->isAdaptive()) {
              return $this->getServiceManager()->get(CatService::SERVICE_ID)->getAssessmentItemRefByIdentifier(
                  $this->getCompilationDirectory()['private'],
                  $this->getCurrentCatItemId()
              );
          } else {
              return $this->getTestSession()->getCurrentAssessmentItemRef();
          }
      }
docs: Get Current AssessmentItemRef object.
  
  This method returns the current AssessmentItemRef object depending on the test $context.
  
  @return \qtism\data\ExtendedAssessmentItemRef