class AgentSessionManager {

  public Host getHost(String sessionId) throws HostNotRegisteredException {
    Preconditions.checkNotNull(sessionId);

    Host host = registeredHosts.get(sessionId);
    if (host != null) {
      return host;
    }

    throw HostNotRegisteredException.forSessionId(sessionId);
  }

}