class AgentSessionManager {

  public String getSessionId(Long hostId) throws HostNotRegisteredException {
    Preconditions.checkNotNull(hostId);

    String sessionId = registeredSessionIds.get(hostId);
    if (sessionId != null) {
      return sessionId;
    }

    throw HostNotRegisteredException.forHostId(hostId);
  }

}