public function buildRepository(string $key) {
    $repositoryInfo = $this->get($key);

    if (is_null($repositoryInfo)) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s is not a registered repository', [$key]));
    }

    $this->validate($repositoryInfo, $key);

    $repository = new $repositoryInfo['Location'];

    return $repository;
  }