code: public function getRubrics(RunnerServiceContext $context, AssessmentItemRef $itemRef = null)
      {
          if ($context instanceof QtiRunnerServiceContext) {
              $rubricHelper = $this->getServiceLocator()->get(QtiRunnerRubric::SERVICE_ID);
              return $rubricHelper->getRubrics($context, $itemRef);
          } else {
              throw new \common_exception_InvalidArgumentType(
                  'QtiRunnerService',
                  'getRubrics',
                  0,
                  'oat\taoQtiTest\models\runner\QtiRunnerServiceContext',
                  $context
              );
          }
      }
docs: Gets the rubrics related to the current session state.
  @param RunnerServiceContext $context
  @param AssessmentItemRef $itemRef (optional) otherwise use the current
  @return mixed
  @throws \common_Exception