if (tasks.isEmpty ())
if (tasks.isEmpty ()) { if (isInfoEnabled ()) { info ("no task on role schedule of " + asset.getUID () + " - " + asset + " between " + start + " and " + end + "\nschedule was " + asset.getRoleSchedule()); }
  protected Task getEncapsulatedTask (Asset asset, Date start, Date end) {    Collection tasks = asset.getRoleSchedule().getEncapsulatedRoleSchedule (start.getTime(), 									    end.getTime());    if (tasks.isEmpty ())      return null;    for (Iterator iter=tasks.iterator (); iter.hasNext (); ) {      PlanElement pe = (PlanElement) iter.next ();      long startTime = 	(long) pe.getEstimatedResult ().getValue(AspectType.START_TIME);      long endTime = 	(long) pe.getEstimatedResult ().getValue(AspectType.END_TIME);      if (startTime == start.getTime () &&	    endTime == end.getTime ()) {	return pe.getTask ();      }     }    return null;  }