private void removeAttributesObserver(IDroneApi droneApi, IObserver observer) { if (isStarted(droneApi)) { try { droneApi.removeAttributesObserver(observer); } catch (RemoteException e) { handleRemoteException(e); } } }