code for the new foreign XML metadata import.
To add support for dcterms, you'll need to add scripts/database/dcterm_import_mapping.sql
to the database.
usage: metadataImportService.importXML(new File("/tmp/atom-entry.xml"), "dcterms", datasetVersion);
A similar method that takes XML input as a string is also provided (honestly I haven't tested it; but it
should work the same).