currElement = s;
currElement = (UIQuantityScheduleElement)s.clone();
    public Vector computeDailyEndTimeBucketSchedule(Vector schedule) {	Vector dailyBucketVector = new Vector(schedule.size());	long baseTime = (useCDay) ? baseCDayTime : InventoryChartBaseCalendar.getBaseTime();	UIQuantityScheduleElement currElement=null;	int currEndDay=-1;	for(int i=0; i<schedule.size(); i++) {	    UIQuantityScheduleElement s = (UIQuantityScheduleElement)schedule.elementAt(i);	    long endTime = s.getEndTime();	    int endDay = (int)((endTime - baseTime) / MILLIS_IN_DAY);	    if(currElement == null) {		currElement = s;	        currEndDay = endDay;	    }	    else {		if(endDay != currEndDay) {		    dailyBucketVector.add(currElement);		    currElement = (UIQuantityScheduleElement)s.clone();		    currEndDay=endDay;		}		else {		    // System.out.println("InventoryChartDataModel::daily bucket Same Day!!");		    currElement.setQuantity((currElement.getQuantity() + s.getQuantity()));		}	    }	}	dailyBucketVector.add(currElement);		// System.out.println("InventoryChartDataModel::daily bucket orig schedule:|" + schedule.size() + "| new one:|" + dailyBucketVector.size());	return dailyBucketVector;    }