[server][HostResourceQueryOption] Use a helper method to make code simple.