/**
  * @see AbstractRepository::getObject()
  * @todo perhaps we should check if an object exists instead of catching
  *   the exception
  */
 public function getObject($id)
 {
     $object = $this->cache->get($id);
     if ($object !== FALSE) {
         return $object;
     }
     try {
         $object = new $this->objectClass($id, $this);
         $this->cache->set($id, $object);
         return $object;
     } catch (RepositoryException $e) {
         throw $e;
     }
 }