// mapping-file tags within a persistence-unit.
//
private EntityMappingsConfig configureMappingFile(Path root, Path xmlFile)
throws Exception
{
EntityMappingsConfig entityMappings = null;
if (xmlFile.exists()) {
InputStream is = xmlFile.openRead();
entityMappings = new EntityMappingsConfig();
entityMappings.setRoot(root);
new Config().configure(entityMappings, is,
"com/caucho/amber/cfg/mapping-30.rnc");
}