code: @Override
  	public void addAttack(Attack attack) {
  		if(!initializedProperly) {
  			throw new IllegalStateException(getUninitializedMessage());
  		}
  		
  		String message = gson.toJson(attack);
  		
  		try {
  			ActiveMqUtils.sendMessage(message, Collections.singletonList(APPSENSOR_ADD_ATTACK_QUEUE), environment);
  		} catch (JMSException e) {
  			logger.error("Failed to send add attack message to output queue.", e);
  		}
  	}
docs: {@inheritDoc}