stmt.close();
stmt = connection.prepareStatement("INSERT INTO n_cube (n_cube_id, app_cd, n_cube_nm, cube_value_bin, version_no_cd, create_dt, sys_effective_dt) VALUES (?, ?, ?, ?, ?, ?, ?)");
stmt.setLong(1, UniqueIdGenerator.getUniqueId());
stmt.setString(2, app);
stmt.setString(3, ncube.getName());
String json = new JsonFormatter().format(ncube);
// String json = JsonWriter.objectToJson(ncube);
stmt.setBytes(4, json.getBytes("UTF-8"));
stmt.setString(5, version);
java.sql.Date now = new java.sql.Date(System.currentTimeMillis());
stmt.setDate(6, now);