protected function getResourceElementHelperForProperty($property)
 {
     $key = 'resource:builder:aux:' . $property->getKey();
     if (($resourceElement = $this->inMemoryPoolCache->fetch($key)) !== false) {
         return $resourceElement;
     }
     $resourceElement = $this->exporter->getResourceElementForProperty($property, true);
     $this->inMemoryPoolCache->save($key, $resourceElement);
     return $resourceElement;
 }
 /**
  * @since 2.1
  *
  * @param integer $id
  *
  * @return DIWikiPage|null
  */
 public function getDataItemById($id)
 {
     $poolCache = $this->inMemoryPoolCache->getPoolCacheFor(self::POOLCACHE_ID);
     if (!$poolCache->contains($id) && !$this->canMatchById($id)) {
         return null;
     }
     $wikiPage = HashBuilder::newDiWikiPageFromHash($poolCache->fetch($id));
     $wikiPage->setId($id);
     return $wikiPage;
 }