data.groupAliases = new HashMap<>();
if(aliasDefinitionsFile.exists()) {
try(Reader fileReader = new UnicodeReader(aliasDefinitionsFile, defaultFileCharacterEncoding)) {
XMLStreamReader2 streamReader = XmlStreamReaderFactory.createReader(fileReader, aliasDefinitionsSchema);
XmlStreamCursor cursor = new XmlStreamCursor(streamReader);
while(cursor.isWithinInitialNode()) {
if(streamReader.getEventType() == XMLStreamReader.START_ELEMENT) {
switch(streamReader.getLocalName()) {
case "alias":
processAlias(streamReader, data, aliasDefinitionsFile, assetLocation);
break;
case "group":
processGroup(streamReader, data, assetLocation);
break;
}
}
cursor.nextTag();
}
}
catch (XMLStreamException e) {
Location location = e.getLocation();