code: public void populateTitle(ResultSet row, ObjectNode t) throws SQLException {
      t.put("employeeId", row.getInt("emp_no"));
      t.put("title", row.getString("title"));
      Calendar fromDate = Calendar.getInstance();
      fromDate.setTime(row.getDate("from_date"));
      t.put("fromDate", dateFormat.format(fromDate.getTime()));
      Calendar toDate = Calendar.getInstance();
      toDate.setTime(row.getDate("to_date"));
      t.put("toDate", dateFormat.format(toDate.getTime()));
    }
docs: take data from a JDBC ResultSet (row) and populate an ObjectNode (JSON) object