docs: private void generateLocations(final Metadata m, final Element e) {
          final GMLGenerator geoRssGenerator = new GMLGenerator();
          for (final Location location : m.getLocations()) {
              final Element locationElement = new Element("location", NS);
              addNotNullAttribute(locationElement, "description", location.getDescription());
              addNotNullAttribute(locationElement, "start", location.getStart());
              addNotNullAttribute(locationElement, "end", location.getEnd());
              if (location.getGeoRss() != null) {
                  geoRssGenerator.generate(location.getGeoRss(), locationElement);
              }
              if (locationElement.hasAttributes() || !locationElement.getChildren().isEmpty()) {
                  e.addContent(locationElement);
              }
          }
      }