@Override
 public void undo() {
   commandMemento.undo();
 }
 @Override
 public void remove(String id) {
   User remove = registry.remove(id);
   notifyDel(remove);
   commandMemento.setUndoCommand(new AddCommand(new AddCommandArgumentsValidator(remove)));
 }
 @Override
 public void put(User user) {
   registry.put(user.getId(), user);
   notifyAdd(user);
   commandMemento.setUndoCommand(new DelCommand(user.getId()));
 }