else { if (isInfoEnabled ()) { if (startTime == start.getTime ()) { info (asset.getUID() + " - end times are different, pe end "+ new Date(endTime) + " vs assigned " + new Date (end.getTime()) + " for " +asset); } else if (endTime == end.getTime ()) { info (asset.getUID() + " - start times are different, pe start "+ new Date(startTime) + " vs assigned " + new Date (start.getTime()) + " for " +asset); } else { info (asset.getUID() + " - both start and end times are different for " + asset); } } }
  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;  }