enrich

public E enrich<E extends EnrichableMessageEnvelope<? extends Object, ? extends Object, M, C, E>>(E source)

Enriches the passed message if it can be enriched. Otherwise, returns the passed instance. A message can be enriched if the flag do_not_enrich is not set in the Enrichment instance of the context of the outer object of the message.

Parameters

source

the envelope with the source message

Throws

if the passed message cannot be enriched