class TimeUtil {

  public static java.time.Instant toJava(Instant timestamp) {
    return Optional.ofNullable(timestamp)
        .map(t -> java.time.Instant.ofEpochMilli(t.getMillis()))
        .orElse(null);
  }

  private  TimeUtil();

}