private Date getDefaultDate() {
   TemporalMember temporalMember = plan.getMember(TemporalMember.class);
   Date startDate = temporalMember.getStartTime();
   Amount<Duration> duration = temporalMember.getDuration();
   Date defaultDate = new Date();
   if (startDate != null && duration != null) {
     defaultDate = DateUtils.add(startDate, duration);
   }
   return defaultDate;
 }
 private void addActivityEdges(TemporalEdgeManager manager, EActivity activity) {
   TemporalMember member = activity.getMember(TemporalMember.class);
   Date start = member == null ? null : member.getStartTime();
   Date end = member == null ? null : member.getEndTime();
   boolean instantaneous = DateUtils.same(start, end);
   List<Long> list = new ArrayList<Long>();
   if (instantaneous && start != null) {
     list.add(start.getTime());
   } else {
     if (start != null) {
       list.add(start.getTime());
     }
     if (end != null) {
       list.add(end.getTime());
     }
   }
   manager.addTimes(activity, list);
 }