Modified code in AgentConnect_AgentConnect_Client class