/** * @return The expires from the payment session object */ public Optional<DateTime> getPaymentSessionExpires() { if (hasPaymentSession() && paymentSession.get().getExpires() != null) { return Optional.of(new DateTime(paymentSession.get().getExpires())); } else { return Optional.absent(); } }