public function setValue($app, $key, $value)
 {
     $type = Extension\ConfigHistory::ADMIN_OPERATION;
     $user = User::getUser();
     $inserted = false;
     if (!$this->hasKey($app, $key)) {
         $inserted = (bool) $this->conn->insertIfNotExist("*PREFIX*appconfig", ["appid" => $app, "configkey" => $key, "configvalue" => $value], ["appid", "configkey"]);
     }
     if (!$inserted) {
         $subject = "update_value";
     } else {
         $subject = "create_value";
     }
     if (!$this->match($app, $key)) {
         $usersInGroup = \OC_Group::usersInGroup("admin");
         foreach ($usersInGroup as $affecteduser) {
             $event = new Event();
             $event->setApp($app)->setType($type)->setAffectedUser($user)->setAuthor($this->currentUID)->setTimestamp(time())->setSubject($subject, array($user, $key, $value));
             $this->data->send($event);
         }
     }
     parent::setValue($app, $key, $value);
 }