CLOUDIFY-2245 agent context is changed to a PersistentMachineDetails before converted to space document