Update AgentService.java