final EvaluationContextImpl context = new EvaluationContextImpl();
Object cacheKey = null;
for (int i = ruleCacheProviders.size() - 1; i >= 0; i--)
{
RuleCacheProvider provider = ruleCacheProviders.get(i);
cacheKey = provider.createKey(event, context);
final List<Rule> list = provider.get(cacheKey);
if (list != null && !list.isEmpty())
{
if (log.isDebugEnabled())
log.debug("Using cached ruleset for event [" + event + "] from provider [" + provider + "].");
for (int j = list.size() - 1; j >= 0; j--)