//No importer or upgrader found, fail
throw new IllegalArgumentException("Provided data " + portalDataKey + " has no registered importer or upgrader support: " + systemId);
}
protected Object unmarshallData(final XMLEventReader bufferedXmlEventReader, final IDataImporter<Object> dataImporterExporter) {
final Unmarshaller unmarshaller = dataImporterExporter.getUnmarshaller();
try {
final StAXSource source = new StAXSource(bufferedXmlEventReader);
return unmarshaller.unmarshal(source);
}
catch (XmlMappingException e) {
throw new RuntimeException("Failed to map provided XML to portal data", e);
}
catch (IOException e) {