code: public void generateAttack(Event triggerEvent, Rule rule) {
  		logger.info("Attack generated on rule: " + rule.getGuid() + ", by user: " + triggerEvent.getUser().getUsername());
  
  		Attack attack = new Attack().
  			setUser(new User(triggerEvent.getUser().getUsername())).
  			setRule(rule).
  			setTimestamp(triggerEvent.getTimestamp()).
  			setDetectionSystem(triggerEvent.getDetectionSystem()).
  			setResource(triggerEvent.getResource());
  
  		appSensorServer.getAttackStore().addAttack(attack);
  	}
docs: Generates an attack from the given {@link Rule} and triggered {@link Event}
  
  @param triggerEvent the {@link Event} that triggered the {@link Rule}
  @param rule the {@link Rule} being evaluated