private function isOwnerAuthFunction($type, Address $instance)
 {
     $siteAuthFunction = $this->currentUserSitePrivilegesAuthFunction($this->container);
     if ($siteAuthFunction()) {
         return true;
     }
     $user = $this->container->getUserLibraryInstance()->getUserLoggedIn();
     if ($user == null) {
         return false;
     }
     return $instance->isOwner($user);
 }
 function __construct(Address $address)
 {
     parent::__construct('mail_address');
     $this->setVariable('local_part', $address->getLocalPart());
     $this->setVariable('active', $address->isActive());
     $this->setVariable('last_modified', $address->lastModified());
     $this->setVariable('targets', $address->getTargets());
     $this->setVariable('mailbox', $address->getMailbox());
     $this->setVariable('owners', $address->listOwners(false));
 }