}
public TimeOffAllocation[] getTimeOff(String userUri, Date startDate,
Date endDate) throws IOException {
GetTimeOffDetailsForUserAndDateRangeRequest request = new GetTimeOffDetailsForUserAndDateRangeRequest();
DateRange dateRange = new DateRange();
dateRange.setStartDate(DateUtil.translateDate(startDate));
dateRange.setEndDate(DateUtil.translateDate(endDate));
request.setUserUri(userUri);
request.setDateRange(dateRange);
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);