code: public static Timestamp toSqlTimestamp(Instant instant) {
          try {
              Timestamp ts = new Timestamp(instant.getEpochSecond() * 1000);
              ts.setNanos(instant.getNano());
              return ts;
          } catch (ArithmeticException ex) {
              throw new IllegalArgumentException(ex);
          }
      }
docs: Converts an {@code Instant} to a {@code java.sql.Timestamp}.
  
  @param instant  the instant, not null
  @return the SQL timestamp, not null