protected function register(ObjectId $oid) {
    $registry = $this->getLocalSessionValue(self::REGISTRY_VAR);
    $registry[] = $oid->__toString();
    $this->setLocalSessionValue(self::REGISTRY_VAR, $registry);
  }