terface in jakarta.enterprise.context.spi">Context</a>&nbsp;context)</span></div>
<div class="block">Registers a custom <a href="../../context/spi/Context.html" title="interface in jakarta.enterprise.context.spi"><code>Context</code></a> object with the container.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>context</code> - The custom context to add to the deployment</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateExcept