class HostResourcesService {

    protected boolean isVmCurrentlyUsingHostResource(VMInstanceVO vmInstance) {
        return VirtualMachine.State.Running == vmInstance.getState() || VirtualMachine.State.Migrating == vmInstance.getState()
                || VirtualMachine.State.Starting == vmInstance.getState();
    }

}