Modifying the adapter to persist the new hardware tree only if it has changed.