code: public RequestedNode resolve(String host, ResourceType type) {
      RunnableIndices indices = typeToIndices.get(type);
      return indices.getOrCreateRequestedNode(host);
    }
docs: Resolve a host name.
  @param host The host.
  @param type The resource type.
  @return The resolved form.