public void updateAgentConfig(String agentId, AgentConfig agentConfig) throws Exception { ConnectedAgent connectedAgent = connectedAgents.get(agentId); if (connectedAgent == null) { throw new AgentNotConnectedException(); } connectedAgent.updateAgentConfig(agentConfig); }