public function getRubrics(RunnerServiceContext $context, AssessmentItemRef $itemRef = null)
    {
        /* @var AssessmentTestSession $session */
        $session = $context->getTestSession();

        $routeItem = null;
        if (!is_null($itemRef)) {
            try {
                $routeItem = $session->getRoute()->getRouteItemsByAssessmentItemRef($itemRef);
                if ($routeItem) {
                    $routeItem = $routeItem[0];
                }
            } catch (OutOfBoundsException $obe) {
                \common_Logger::d("Could not retrieve the route for item '${itemRef}'.");
            }
        } else {
            $routeItem = $session->getRoute()->current();
        }

        return implode('', $this->getRubricBlock($routeItem, $session, $context->getCompilationDirectory()));
    }