// store the new interval as preferred
String newStart = eventActivity.withStatus().getStart();
String newEnd = eventActivity.withStatus().getEnd();
if (newStart != null && newEnd != null) {
Preference preferred = new Preference ();
preferred.setStart(newStart);
preferred.setEnd(newEnd);
preferred.setWeight(WEIGHT_PREFERRED_INTERVAL);
// overwrite other preferences with this new preference
// TODO: all preferences are overwritten for now. Behavior should be changed.
List<Preference> preferences = new ArrayList<Preference>();
preferences.add(preferred);