public int importData(Reader reader, String format, Resource user, URI context) throws MarmottaImportException {
return getImporterInstance(format).importData(reader,format,user,context);
}
private Importer getImporterInstance(String type) throws MarmottaImportException {
if(!importerMap.containsKey(type)) throw new MarmottaImportException("no importer defined for type "+type);
return importerMap.get(type);
}