public override Deploy ParseConfig(string key, Config config)
{
var deploy = base.ParseConfig(key, config);
if (deploy == null) return null;
var remote = deploy.Config.GetString("remote");
ActorPath actorPath;
if(ActorPath.TryParse(remote, out actorPath))
{
var address = actorPath.Address;
//can have remotely deployed routers that remotely deploy routees
return CheckRemoteRouterConfig(deploy.WithScope(scope: new RemoteScope(address)));
}
if (!string.IsNullOrWhiteSpace(remote))
throw new ConfigurationException(string.Format("unparseable remote node name [{0}]", remote));
return CheckRemoteRouterConfig(deploy);
}