Source:
<code>protected void executeCommand() { if (StorageHelperDirector.getInstance().getItem(getNewMasterDomain().getStorageType()) .connectStorageToDomainByVdsId(getNewMasterDomain(), getVds().getId())) { ((EventQueue) EjbUtils.findBean(BeanType.EVENTQUEUE_MANAGER, BeanProxyType.LOCAL)).submitEventSync(new Event(getParameters().getStoragePoolId(), getParameters().getNewMasterDomainId(), null, EventType.RECOVERY, ""), new Callable<EventResult>() { @Override public EventResult call() { getParameters().setStorageDomainId(getMasterDomainIdFromDb()); StoragePoolIsoMap domainPoolMap = new StoragePoolIsoMap( getParameters().getNewMasterDomainId(), getParameters().getStoragePoolId(), StorageDomainStatus.Active); DbFacade.getInstance() .getStoragePoolIsoMapDao() .save(domainPoolMap); getParameters().setVdsId(getVds().getId()); VdcReturnValueBase returnVal = runInternalAction( VdcActionType.ReconstructMasterDomain, getParameters(), cloneContextAndDetachFromParent()); boolean reconstructVerbExecuted = (returnVal.getActionReturnValue() != null) ? (Boolean) returnVal.getActionReturnValue() : false; getStoragePoolDAO().updateStatus(getStoragePool().getId(), StoragePoolStatus.NonResponsive); if (!reconstructVerbExecuted) { getStoragePoolIsoMapDAO().remove(domainPoolMap.getId()); } if (returnVal.getSucceeded()) { <START> updateStorageDomainFormat(getNewMasterDomain()); <END> } setSucceeded(returnVal.getSucceeded()); return new EventResult(reconstructVerbExecuted, EventType.RECONSTRUCT); } }); } else { getReturnValue().setFault(new VdcFault(new VdcBLLException(VdcBllErrors.StorageServerConnectionError, "Failed to connect storage"), VdcBllErrors.StorageServerConnectionError)); } }</code><technical_language>domain loaded reconstruct ran, running this update override properties of domain updated reconstruct command</technical_language>

Target:
protected void executeCommand() { if (StorageHelperDirector.getInstance().getItem(getNewMasterDomain().getStorageType()) .connectStorageToDomainByVdsId(getNewMasterDomain(), getVds().getId())) { ((EventQueue) EjbUtils.findBean(BeanType.EVENTQUEUE_MANAGER, BeanProxyType.LOCAL)).submitEventSync(new Event(getParameters().getStoragePoolId(), getParameters().getNewMasterDomainId(), null, EventType.RECOVERY, ""), new Callable<EventResult>() { @Override public EventResult call() { getParameters().setStorageDomainId(getMasterDomainIdFromDb()); StoragePoolIsoMap domainPoolMap = new StoragePoolIsoMap( getParameters().getNewMasterDomainId(), getParameters().getStoragePoolId(), StorageDomainStatus.Active); DbFacade.getInstance() .getStoragePoolIsoMapDao() .save(domainPoolMap); getParameters().setVdsId(getVds().getId()); VdcReturnValueBase returnVal = runInternalAction( VdcActionType.ReconstructMasterDomain, getParameters(), cloneContextAndDetachFromParent()); boolean reconstructVerbExecuted = (returnVal.getActionReturnValue() != null) ? (Boolean) returnVal.getActionReturnValue() : false; getStoragePoolDAO().updateStatus(getStoragePool().getId(), StoragePoolStatus.NonResponsive); if (!reconstructVerbExecuted) { getStoragePoolIsoMapDAO().remove(domainPoolMap.getId()); } if (returnVal.getSucceeded()) { updateStorageDomainFormatIfNeeded(loadTargetedMasterDomain()); } setSucceeded(returnVal.getSucceeded()); return new EventResult(reconstructVerbExecuted, EventType.RECONSTRUCT); } }); } else { getReturnValue().setFault(new VdcFault(new VdcBLLException(VdcBllErrors.StorageServerConnectionError, "Failed to connect storage"), VdcBllErrors.StorageServerConnectionError)); } }