class NestedMetadata {

  static ObjectNode uriFromAttributes(Map<String, String> attributes) {
    ObjectNode uri = Json.createObjectNode();
    attributes.entrySet().stream().filter(entry -> URI_ATTRIBUTES.contains(entry.getKey())) //
        .forEach(entry -> uri.put(entry.getKey(), entry.getValue()));
    return uri;
  }

  private  NestedMetadata();

}