Implementing #751

TDD shows that all the requested features are now correctly imported.
TODO:

- Needs live testing (all the insert MD process is mocked in the test),
- Check if the generated metadata is actually valid against XSD,
- PR.