Metadata confile files now specify type as an attribute on the root node - instead of us having a hardcoded map of types to files