private function createQueryProfile($query, $format)
 {
     // If the smwgQueryProfiler is marked with FALSE then just don't create a profile.
     if ($this->applicationFactory->getSettings()->get('smwgQueryProfiler') === false) {
         return;
     }
     $query->setOption('smwgQueryDurationEnabled', $this->applicationFactory->getSettings()->get('smwgQueryDurationEnabled'));
     $profileAnnotatorFactory = $this->applicationFactory->getQueryFactory()->newProfileAnnotatorFactory();
     $combinedProfileAnnotator = $profileAnnotatorFactory->newCombinedProfileAnnotator($query, $format);
     $combinedProfileAnnotator->pushAnnotationsTo($this->parserData->getSemanticData());
 }