class NestedMetadata {

  static ObjectNode geoFromAttributes(Map<String, String> attributes) {
    ObjectNode geo = Json.createObjectNode();
    attributes.keySet().stream() //
        .filter(k -> k.startsWith(GEO_PREFIX)) //
        .forEach(k -> geo.put(k.substring(4), attributes.get(k)));
    return geo;
  }

  private  NestedMetadata();

}