if (profilingRule.getRuleCriteria().contains(criterion)) {
profilingRule.getRuleCriteria().remove(criterion);
}
try {
Profiler profiler = getServiceLocator().getProfiler();
profiler.storeProfilingRule(profilingRule);
}
catch (ProfilerException e) {
logger.error("Could not save rule criterion {}: {}", criterion.getName(), e.getMessage());
}
}