@Override
  public void registerOperations(final ManagementResourceRegistration registration) {
    super.registerOperations(registration);

    registration.registerOperationHandler(LEGACY_ADD_HANDLER, HandlerOperations.ADD_SUBHANDLER);
    registration.registerOperationHandler(
        LEGACY_REMOVE_HANDLER, HandlerOperations.REMOVE_SUBHANDLER);
    registration.registerOperationHandler(ADD_HANDLER, HandlerOperations.ADD_SUBHANDLER);
    registration.registerOperationHandler(REMOVE_HANDLER, HandlerOperations.REMOVE_SUBHANDLER);
  }
 @Override
 public void registerOperations(final ManagementResourceRegistration registration) {
   super.registerOperations(registration);
   registration.registerOperationHandler(
       new SimpleOperationDefinition(
           CHANGE_FILE_OPERATION_NAME, getResourceDescriptionResolver(), CommonAttributes.FILE),
       HandlerOperations.CHANGE_FILE);
   if (resolvePathHandler != null)
     registration.registerOperationHandler(
         resolvePathHandler.getOperationDefinition(), resolvePathHandler);
 }