class TimeUtil {

  public static Instant toJoda(java.time.Instant instant) {
    return Optional.ofNullable(instant).map(t -> new Instant(t.toEpochMilli())).orElse(null);
  }

  private  TimeUtil();

}