="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;entity)</span></div>
<div class="block">Set a new message entity. The existing entity <a href="#getEntityAnnotations()"><code>annotations</code></a> and <a href="#getMediaType()"><code>media type</code></a> are preserved.
 <p>
 It is the callers responsibility to wrap the actual entity with <a href="../core/GenericEntity.htm