public void weeklyStartHours(NSArray nsarray, int beginScheduleWindow, int endScheduleWindow, int startDay) {
int hour = beginScheduleWindow;
for(Enumeration enumeration = nsarray.objectEnumerator(); enumeration.hasMoreElements();) {
if (hour > endScheduleWindow)
hour = beginScheduleWindow;
MInstance minstance = (MInstance) enumeration.nextElement();
minstance.setSchedulingWeeklyStartTime(Integer.valueOf(hour));
minstance.setSchedulingStartDay(Integer.valueOf(startDay));
processedInstance(minstance);
hour++;
}
sendUpdateInstancesToWotaskds();
}