private static void initDB(Connection connection) throws Exception {
        ClassLoader cl = JdbcMetricsTest.class.getClassLoader();
        URL resource = cl.getResource("ddls/apiman-gateway_h2.ddl");
        try (InputStream is = resource.openStream()) {
            System.out.println("=======================================");
            System.out.println("Initializing database.");
            DdlParser ddlParser = new DdlParser();
            List<String> statements = ddlParser.parse(is);
            for (String sql : statements){
                System.out.println(sql);
                PreparedStatement statement = connection.prepareStatement(sql);
                statement.execute();
            }
            System.out.println("=======================================");
        }
    }
Initialize the DB with the apiman gateway DDL.
@param connection
gateway/engine/jdbc/src/test/java/io/apiman/gateway/engine/jdbc/JdbcMetricsTest.java