Profiler profiler = getServiceLocator().getProfiler();
try {
if (getRules().contains(profilingRule)) {
getRules().remove(profilingRule);
}
profiler.deleteProfilingRule(profilingRule);
profilingRule = null;
RuleEditPanel.this.setVisible(false);
} catch (ProfilerException e) {
logger.error("Failed to REMOVE: " + profilingRule, e);
}