[server][HostResourceQueryOption] Replace an efficient way.