public String retrieve() { product = productBusiness.retrieve(productId); Pair<DateTime, DateTime> schedule = productBusiness.calculateProductSchedule(product); // Round the dates this.scheduleEnd = DateTimeUtils.roundToNearestMidnight(schedule.second); this.scheduleStart = DateTimeUtils.roundToNearestMidnight(schedule.first); return Action.SUCCESS; }