public static function setPath($path)
    {
      $rf = realpath($path);
      if (is_file($rf))
        throw new \CatapultApiException("Provided folder does not exist");  

      self::$credentials_opts['path'] = realpath($path);
    }