public function applicationFilePath($path, $app = null)
{
if (is_null($app)) {
$app = $this->getApp();
}
if (!isset($this->applications[$app])) {
throw new Horde_Exception(sprintf(Horde_Core_Translation::t("\"%s\" is not configured in the Horde Registry."), $app));
}
return str_replace('%application%', $this->applications[$app]['fileroot'], $path);
}