@PreDestroy
 public void stop() {
   threadedAgent.stop();
 }