int controllerPort = agentConfig.getControllerPort();
agentConfig.setControllerHost(controllerIP);
LOG.info("connecting to controller {}:{}", controllerIP, controllerPort);
try {
agentController = new AgentControllerDaemon(agentConfig);
agentController.run();
} catch (Exception e) {
LOG.error("Error while connecting to : {}:{}", controllerIP, controllerPort);
printHelpAndExit("Error while starting Agent", e);
}