String name = getMetricName(context, clazz);
if (name == null) {
context.setRollbackOnly();
} else {
ModelNode targetOperation = Util.createRemoveOperation(parent.append(PathElement.pathElement(CustomLoadMetricDefinition.PATH.getKey(), name)));
context.addStep(targetOperation, new ReloadRequiredRemoveStepHandler(), OperationContext.Stage.MODEL, true);
}
context.stepCompleted();
}