Deal with concurrent state update for VM and Host objects.
Fix the missing java imports from automatic merge