code: @Override
      @SuppressWarnings("deprecation")
      public void registerOperations(ManagementResourceRegistration resourceRegistration) {
          if (addHandler != null) {
              registerAddOperation(resourceRegistration, addHandler, addRestartLevel);
          }
          if (removeHandler != null) {
              registerRemoveOperation(resourceRegistration, removeHandler, removeRestartLevel);
          }
      }
docs: {@inheritDoc}
  Registers an add operation handler or a remove operation handler if one was provided to the constructor.