public ConsoleCommunication(Connector connector) throws CommunicationException {
final ClientReceiver receiver = ClientReceiver.connect(connector, new AgentAddress(m_agentIdentity));
m_sender = ClientSender.connect(receiver);
m_sender.send(new AgentControllerProcessReportMessage(AgentControllerState.STARTED, getSystemDataModel(),
m_connectionPort, version));
final MessageDispatchSender messageDispatcher = new MessageDispatchSender();
m_agentControllerServerListener.registerMessageHandlers(messageDispatcher);
m_messagePump = new MessagePump(receiver, messageDispatcher, 1);