private MuleEvent handleNotAuthorized(OnNoTokenPolicyAware policyAware,
NotAuthorizedException e,
MuleEvent event) throws NotAuthorizedException
{
OnNoTokenPolicy policy = policyAware.getOnNoTokenPolicy();
if (policy == null)
{
throw new IllegalStateException("OnNoTokenPolicy cannot be null");
}
return policy.handleNotAuthorized(policyAware, e, event);
}