Metadata Datasource JCR specification.
Metadata datasources and associated locale files are stored in JCR under /etc/metadata/<file> where <file> is a JCR node with a random UUID as name that contains the XMI schema plus the following properties:
1. domain-id
Domain id associated with this file.
2. file-type (domain|locale)
Specifies if the file is a metadata schema or a locale.
3. locale
The locale associated with this file (or null for a domain file).
Metadata Datasource Import API.
...