my $ams_hosts = $request->get_config()->get_ams_hosts($domain);