resource.withLink(rel, href, name, title, hreflang, profile);
}
String optionalNodeValueAsText(JsonNode node, String key) {
JsonNode value = node.get(key);
return value != null ? value.asText() : null;
}
private void readProperties(MutableRepresentation resource, JsonNode rootNode) {
Iterator<String> fieldNames = rootNode.fieldNames();