- Optional<Node> nodeOptional = Optional.absent();
- try {
- nodeOptional = transaction.read(LogicalDatastoreType.OPERATIONAL, nodeInstance).checkedGet();
- } catch (ReadFailedException e) {
- LOG.error("Error occured when trying to read Node ", e);
- }
- if (nodeOptional.isPresent()) {