String fileStr = (String) fileExp.evaluate(elem, XPathConstants.STRING);
if (fileStr == null || fileStr.isEmpty()) {
throw new IllegalDataException(tr("File name expected for layer no. {0}", support.getLayerIndex()));
}
OsmImporter importer = new OsmImporter();
try (InputStream in = support.getInputStream(fileStr)) {
OsmImporter.OsmImporterData importData = importer.loadLayer(in, support.getFile(fileStr), support.getLayerName(), progressMonitor);
support.addPostLayersTask(importData.getPostLayerTask());
return importData.getLayer();
}
} catch (XPathExpressionException e) {