iv class="paragraph"><p>Checking a variable</p></div>
<div class="listingblock">
<div class="content"></div></div>
<div class="paragraph"><p>An example using services</p></div>
<div class="listingblock">
<div class="content"></div></div>
<div class="paragraph"><p>An example using hasDomainRole and hasRole</p></div>
<div class="listingblock">
<div class="content"></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_why_use_enforcer">Why use Enforcer</h2>
<div class="sectionbody">
<div class=