@Override
 public void setAsText(String text) throws IllegalArgumentException {
   if (text != null && text.trim().length() > 0) {
     Activity activity = activityRepository.getActivityById(text);
     if (activity != null) setValue(activity);
     else throw new IllegalArgumentException("No activity with ID " + text);
   } else setValue(null);
 }