for (MessageReply r : replies) {
VolumeSpec vspec = spec.getVolumeSpecs().get(replies.indexOf(r));
if (r.isSuccess()) {
CreateVolumeReply cr = r.castReply();
VolumeInventory inv = cr.getInventory();
<BUG>if (inv.getType().equals(VolumeType.Root.toString())) {
UpdateQuery.New()
.entity(VmInstanceVO.class)</BUG>
.set(VmInstanceVO_.rootVolumeUuid, inv.getUuid())
.condAnd(VmInstanceVO_.uuid, Op.EQ, spec.getVmInventory().getUuid())

for (MessageReply r : replies) {
VolumeSpec vspec = spec.getVolumeSpecs().get(replies.indexOf(r));
if (r.isSuccess()) {
CreateVolumeReply cr = r.castReply();
VolumeInventory inv = cr.getInventory();
if (inv.getType().equals(VolumeType.Root.toString())) {
UpdateQuery.New(VmInstanceVO.class)
.set(VmInstanceVO_.rootVolumeUuid, inv.getUuid())
.condAnd(VmInstanceVO_.uuid, Op.EQ, spec.getVmInventory().getUuid())
