}
AccessDecisionVoterContext voterContext =
CodiUtils.getContextualReferenceByClass(beanManager, AccessDecisionVoterContext.class, true);
AccessDecisionState voterState = AccessDecisionState.VOTE_IN_PROGRESS;
try
{
if(voterContext instanceof EditableAccessDecisionVoterContext)
{
((EditableAccessDecisionVoterContext)voterContext).setState(voterState);