* > http://community.abiquo.com/display/ABI20/VirtualMachineResource#
* VirtualMachineResource-Retrievethestateofthevirtualmachine</a>
* @return Current state of the virtual machine.
*/
public VirtualMachineState getState() {
VirtualMachineStateDto stateDto = context.getApi().getCloudApi().getVirtualMachineState(target);
VirtualMachineState state = stateDto.getState();
target.setState(state);
target.setIdState(state.id());
return state;
}