public void disconnect(final BluetoothDevice device){
  final BleManager<BleManagerCallbacks> manager=mBleManagers.get(device);
  if (manager != null && manager.isConnected()) {
    manager.disconnect();
  }
  mManagedDevices.remove(device);
}

public void disconnect ( final BluetoothDevice device ) { final BleManager < BleManagerCallbacks > manager = mBleManagers . get ( device ) ; if ( manager != null && manager . isConnected ( ) ) { manager . disconnect ( ) ; } mManagedDevices . remove ( device ) ; }
disconnects the given device and removes the associated blemanager object . if the list of blemanagers is empty while the last activity unbinds from the service , the service will stop itself .
