private void doImport(File file) {
        InputStream importData = null;
        IImportReader reader;
        try {
            importData = new FileInputStream(file);
            reader = new JsonImportReader(LOGGER, importData);
        } catch (IOException e) {
            IOUtils.closeQuietly(importData);
            LOGGER.error(e);
            return;
        }

        try {
            importer.start(file.getAbsolutePath());
            reader.setDispatcher(importer);
            reader.read();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            IOUtils.closeQuietly(importData);
        }
    }
@param file the file to import
manager/api/war/src/main/java/io/apiman/manager/api/war/WarApiManagerBootstrapperServlet.java