@Override public void stop(){
  if (executorService != null) {
    executorService.shutdown();
  }
  restTemplate=null;
}

@ Override public void stop ( ) { if ( executorService != null ) { executorService . shutdown ( ) ; } restTemplate = null ; }
stops communication with and closes all connections to the remote http server ( service ) .
