*/
private void ext(List<MetadataExtension> extensions, String extension,
Metadata metadata, boolean preferred) {
if (preferred) {
// Add the mapping at the beginning of the list
extensions.add(0, new MetadataExtension(extension, metadata));
} else {
// Add the mapping at the end of the list
extensions.add(new MetadataExtension(extension, metadata));
}
}