public static void main(String[] args) throws IOException { FileInputStream input = new FileInputStream(args[0]); byte[] buf = new byte[input.available()]; input.read(buf); input.close(); JSONObject model = new JSONObject(new String(buf, "UTF-8")); DbContext.newContext(model, new File(args[1]), null, null).render(); }