public String resolve(RequestContext context, RuleCriterion criterion) { String value = context.getRequestParameter(ProfilingRule.STANDARD_GROUP); if (value != null) { criterion.setName(ProfilingRule.STANDARD_GROUP); return value; } value = context.getRequestParameter(ProfilingRule.STANDARD_ROLE); if (value != null) { criterion.setName(ProfilingRule.STANDARD_ROLE); return value; } // use the User Criterion to resolve it criterion.setName(ProfilingRule.STANDARD_USER); return super.resolve(context, criterion); }