code: protected void trim(Queue<Notification> notifications, DateTime time) {
  		while (!notifications.isEmpty() && !notifications.peek().getStartTime().isAfter(time)) {
  			notifications.poll();
  		}
  	}
docs: Pops {@link Notification}s out of the queue until the start time of the queue's head
  is after the parameter time. The queue of notifications MUST be sorted in ascending
  order by start time.
  
  @param notifications the queue of {@link Notification}s being trimmed
  @param time the time that all {@link Notification}s in the queue must be after