listHours = new ArrayList<String>();
List<String> changedDays = new ArrayList<String>();
try {
ClassRoom classRoom = (ClassRoom) system.query(new GetClassRoom(classRoomId));
int numberOfComputerOld = classRoom.getComputers().size();
int numberOfComputersNew = computerItem.getTableContents().size();
int numberOfComputers = numberOfComputerOld - numberOfComputersNew;
if(scheduleItem.getChangedDays().size() > 0) {
changedDays.addAll(scheduleItem.getChangedDays());
if(numberOfComputers == 0){
numberOfComputers = classRoom.getComputers().size();
}
} else if(numberOfComputers > 0){
GD gd = GD.getInstance();
int startWorkTime = gd.getWorktime("start");
int endWorkTime = gd.getWorktime("end");