- Optional<DataContainerChild<? extends PathArgument, ?>> possibleOwner =
- entityNode.getChild(ENTITY_OWNER_NODE_ID);
- String currentOwner = possibleOwner.isPresent() ? possibleOwner.get().getValue().toString() : "";
+ String currentOwner = entityNode.findChildByArg(ENTITY_OWNER_NODE_ID)
+ .map(child -> child.body().toString())
+ .orElse("");