'}';
}
public static NodeAttributes fromGenerated(GeneratedUANode gNode, NodeClass nodeClass) {
NodeId nodeId = NodeId.parseNodeId(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parseQualifiedName(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
Optional<LocalizedText> description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.map(localizedText -> Optional.of(localizedText))