public void updateBluetoothGatt(@NonNull BluetoothGatt bluetoothGatt) {
        reference.compareAndSet(null, bluetoothGatt);
    }
Updates GATT instance storage if it wasn't initialized previously.
rxandroidble/src/main/java/com/polidea/rxandroidble2/internal/connection/BluetoothGattProvider.java