protected function getDataDirectoryPath() {
    $data_dir = $this->getEnvironment()->getDataDirectory();
    $config = $this->getConfiguration();
    return str_replace('{branch}', $config->getBranch(), $data_dir);
  }