final Resource dayResource = dayIter.next();
final int day = Integer.valueOf(dayResource.getName());
final boolean oldDay = oldMonth || day < now.get(Calendar.DAY_OF_MONTH);
// hours
final Iterator<Resource> hourIter = dayResource.listChildren();
while ( caps.isActive() && hourIter.hasNext() ) {
final Resource hourResource = hourIter.next();
final int hour = Integer.valueOf(hourResource.getName());
final boolean oldHour = (oldDay && (oldMonth || now.get(Calendar.HOUR_OF_DAY) > 0)) || hour < (now.get(Calendar.HOUR_OF_DAY) -1);