protected function findModel($data)
	{
		//fetch pk data
		$pk = [];
		foreach ($this->modelInstance->primaryKey() as $pkCol) {
			if (!isset($data[$pkCol])) {
				throw new InvalidConfigException(Yii::t('app', 'Missing PK-param {param}', ['param' => $pkCol]));
			}
			$pk[$pkCol] = $data[$pkCol];
		}

		//find model and act according to result
		$model = $this->modelInstance->findOne($pk);
		if ($model === null) throw new NotFoundHttpException();
		return $model;
	}