@Override
public void registerOperations(final ManagementResourceRegistration rootResourceRegistration) {
final ResourceDescriptionResolver rootResolver = getResourceDescriptionResolver();
// Ops to add and remove the root resource
final MailSubsystemAdd subsystemAdd = MailSubsystemAdd.INSTANCE;
final DescriptionProvider subsystemAddDescription = new DefaultResourceAddDescriptionProvider(rootResourceRegistration, rootResolver);
rootResourceRegistration.registerOperationHandler(ADD, subsystemAdd, subsystemAddDescription, EnumSet.of(OperationEntry.Flag.RESTART_ALL_SERVICES));
final DescriptionProvider subsystemRemoveDescription = new DefaultResourceRemoveDescriptionProvider(rootResolver);
rootResourceRegistration.registerOperationHandler(REMOVE, ReloadRequiredRemoveStepHandler.INSTANCE, subsystemRemoveDescription, EnumSet.of(OperationEntry.Flag.RESTART_ALL_SERVICES));
}