/**
  * Add a privilege to this role.
  *
  * @param PrivilegeInterface $privilege
  * @return void
  */
 public function addPrivilege($privilege)
 {
     $this->privileges[$privilege->getCacheEntryIdentifier()] = $privilege;
 }