public void removeRESTClient(URI endpoint,String username,String password){
  String clientKey=endpoint.toString() + ":" + username+ ":"+ password;
  RestClientItf clientApi=_clientMap.get(clientKey);
  if (null != clientApi) {
    _clientMap.remove(clientKey);
  }
}

public void removeRESTClient ( URI endpoint , String username , String password ) { String clientKey = endpoint . toString ( ) + ":" + username + ":" + password ; RestClientItf clientApi = _clientMap . get ( clientKey ) ; if ( null != clientApi ) { _clientMap . remove ( clientKey ) ; } }
remove the connection from the cache .
