code: protected DateTime findMostRecentAttackTime(Event triggerEvent, Rule rule) {
  		DateTime newest = DateUtils.epoch();
  
  		SearchCriteria criteria = new SearchCriteria().
  				setUser(new User(triggerEvent.getUser().getUsername())).
  				setRule(rule).
  				setDetectionSystemIds(appSensorServer.getConfiguration().getRelatedDetectionSystems(triggerEvent.getDetectionSystem()));
  
  		Collection<Attack> attacks = appSensorServer.getAttackStore().findAttacks(criteria);
  
  		for (Attack attack : attacks) {
  			if (attack.getRule().guidMatches(rule)) {
  				if (DateUtils.fromString(attack.getTimestamp()).isAfter(newest)) {
  					newest = DateUtils.fromString(attack.getTimestamp());
  				}
  			}
  		}
  
  		return newest;
  	}
docs: Finds the most recent {@link Attack} from the {@link Rule} being evaluated.
  
  @param triggerEvent the {@link Event} that triggered the {@link Rule}
  @param rule the {@link Rule} being evaluated
  @return a {@link DateTime} of the most recent attack related to the {@link Rule}