class H2DataExporter implements DataExporter {

    @Override
    public void export(final StoreLoader loader,
                       final Path output,
                       final String username,
                       final String password) throws SQLException, IOException {

        final String connectionString = "jdbc:h2:" + output.toString();

        final List<String> createTableStatements = Stream.of(getClass().getResourceAsStream(CREATE_TABLE_RESOURCE))
            .map(InputStreamReader::new)
            .map(BufferedReader::new)
            .flatMap(BufferedReader::lines)
            .collect(Collectors.toList());

        final JdbcDataExporter jdbcDataExporter
            = new JdbcDataExporter(connectionString, INSERT_ROW, createTableStatements);

        jdbcDataExporter.export(loader, output, username, password);
    }

}