// go through each rule
for ( int i = 0; i < rules.length; i++ )
{
// prevent against empty rules
EnforcerRule rule = rules[i];
if ( rule != null )
{
// store the current rule for
// logging purposes
currentRule = rule.getClass().getName();
log.debug( "Executing rule: " + currentRule );
try
{
if ( ignoreCache || shouldExecute( rule ) )
{
// execute the rule
//noinspection SynchronizationOnLocalVariableOrMethodParameter
synchronized ( rule )
{
rule.execute( helper );
}
}
}
catch ( EnforcerRuleException e )
{