}
Collection<String> stringContent = new ArrayList<>(content.size());
for (Object o : content) {
stringContent.add(o.toString());
}
Extension extension = new Extension();
extension.setName(key);
extension.getContent().addAll(stringContent);
pmml.getExtensions().add(extension);
}