private void updateNodeKeyStatus(@NonNull final MeshKey meshKey) {
        for (Provisioner provisioner : provisioners) {
            for (ProvisionedMeshNode node : nodes) {
                if (node.getUuid().equalsIgnoreCase(provisioner.getProvisionerUuid())) {
                    if (meshKey instanceof NetworkKey) {
                        for (NodeKey key : node.getAddedNetKeys()) {
                            if (key.getIndex() == meshKey.getKeyIndex()) {
                                key.setUpdated(true);
                            }
                        }
                    } else {
                        for (NodeKey key : node.getAddedAppKeys()) {
                            if (key.getIndex() == meshKey.getKeyIndex()) {
                                key.setUpdated(true);
                            }
                        }
                    }
                }
            }
        }
    }
Updates the NodeKey object for Network or Application Keys

@param meshKey Updated Key
mesh/src/main/java/no/nordicsemi/android/mesh/BaseMeshNetwork.java