code: protected function readStoreRecord($type, array $query) {
          $model = $this->store->get_record($type, $query);
          if ($model === false) {
              throw new Exception('Record not found.');
          }
          return $model;
      }
docs: Reads an object from the store with the given type and query.
  @param String $type
  @param [String => Mixed] $query
  @throws Exception if the record was not found
  @return PhpObj