I have a driver module. It implements the Device
When I disable the device or delete the device, I would like to pass all tags to BAD Quality and to set valeur of Boolean tags to False ou Integer tags to 0.
I don’t find How I can find the BuiltinDataType from item.getReadValueId() or from node.getUaVariableNode() to adjust the right value
```
public void shutdown() {
logger.info("shutdown()");
subscriptionModel.shutdown();
deviceContext.getSubscriptionModel()
.getDataItems(deviceContext.getName())
.forEach(item ->
{
String name = deviceContext.getName();
String identifier = item.getReadValueId().getNodeId().getIdentifier().toString();
logger.info("getIdentifier()={}",identifier);
identifier = identifier.replace(String.format("[%s]",name),"");
// Dynamic Nodes
DynamicNode node = dynamicNodeManager.findNode(identifier);
if (node != null){
// logger.info("node.getUaVariableNode().getDataType()={}",node.getUaVariableNode().getDataType().getType().toString());
if (node.getUaVariableNode().getDataType().equals(BuiltinDataType.Boolean)){
item.setValue(new DataValue(new Variant(false),StatusCode.BAD));
} else {
item.setValue(new DataValue(null,StatusCode.BAD));
}
} else {
item.setValue(new DataValue(null,StatusCode.BAD));
}
});
// folderManager
dynamicNodeManager.shutdown();
staticNodeManager.shutdown();
// Arrêt de l'ExecutorService
executor.shutdownNow();
logger.debug("end shutdown {}",getName());
}
```