Source:
<code>private void refreshVdsRunTimeInfo() { boolean isVdsUpOrGoingToMaintenance = _vds.getStatus() == VDSStatus.Up || _vds.getStatus() == VDSStatus.PreparingForMaintenance || _vds.getStatus() == VDSStatus.Error || _vds.getStatus() == VDSStatus.NonOperational; try { if (isVdsUpOrGoingToMaintenance) { if (_vdsManager.getRefreshStatistics() || _vds.getStatus() == VDSStatus.PreparingForMaintenance) { refreshVdsStats(); } else { } } else { final AtomicBoolean processHardwareNeededAtomic = new AtomicBoolean(); <START> boolean checkOtherParams = _vds.getTrustedService()? false: true; <END> if (_vds.getTrustedService()){ AttestationResultEnum trustLevel = AttestationService.getInstance().getAttestationValues().remove(_vds.getHostName()); if (trustLevel != null && trustLevel != AttestationResultEnum.TRUSTED){ _vds.setStatus(VDSStatus.NonOperational); _vds.setNonOperationalReason(NonOperationalReason.UNTRUSTED); _saveVdsDynamic = true; } else if (_vds.getStatus() == VDSStatus.NonOperational && _vds.getNonOperationalReason() == NonOperationalReason.UNTRUSTED){ checkOtherParams = false; } else{ checkOtherParams = true; } } if (checkOtherParams) { VDSStatus refreshReturnStatus = _vdsManager.refreshCapabilities(processHardwareNeededAtomic, _vds, false); processHardwareCapsNeeded = processHardwareNeededAtomic.get(); refreshedCapabilities = true; if (refreshReturnStatus != VDSStatus.NonOperational) { _vdsManager.setStatus(VDSStatus.Up, _vds); } _saveVdsDynamic = true; } } beforeFirstRefreshTreatment(isVdsUpOrGoingToMaintenance); refreshVmStats(); } catch (VDSRecoveringException e) { if (_vds.getStatus() != VDSStatus.PreparingForMaintenance) { throw e; } } moveVDSToMaintenanceIfNeeded(); }</code><technical_language>Compilation error: getTrustedService() exist</technical_language>

Target:
private void refreshVdsRunTimeInfo() { boolean isVdsUpOrGoingToMaintenance = _vds.getStatus() == VDSStatus.Up || _vds.getStatus() == VDSStatus.PreparingForMaintenance || _vds.getStatus() == VDSStatus.Error || _vds.getStatus() == VDSStatus.NonOperational; try { if (isVdsUpOrGoingToMaintenance) { if (_vdsManager.getRefreshStatistics() || _vds.getStatus() == VDSStatus.PreparingForMaintenance) { refreshVdsStats(); } else { } } else { final AtomicBoolean processHardwareNeededAtomic = new AtomicBoolean(); boolean checkOtherParams = _vds.getTrustedService(); if (_vds.getTrustedService()){ AttestationResultEnum trustLevel = AttestationService.getInstance().getAttestationValues().remove(_vds.getHostName()); if (trustLevel != null && trustLevel != AttestationResultEnum.TRUSTED){ _vds.setStatus(VDSStatus.NonOperational); _vds.setNonOperationalReason(NonOperationalReason.UNTRUSTED); _saveVdsDynamic = true; } else if (_vds.getStatus() == VDSStatus.NonOperational && _vds.getNonOperationalReason() == NonOperationalReason.UNTRUSTED){ checkOtherParams = false; } else{ checkOtherParams = true; } } if (checkOtherParams) { VDSStatus refreshReturnStatus = _vdsManager.refreshCapabilities(processHardwareNeededAtomic, _vds, false); processHardwareCapsNeeded = processHardwareNeededAtomic.get(); refreshedCapabilities = true; if (refreshReturnStatus != VDSStatus.NonOperational) { _vdsManager.setStatus(VDSStatus.Up, _vds); } _saveVdsDynamic = true; } } beforeFirstRefreshTreatment(isVdsUpOrGoingToMaintenance); refreshVmStats(); } catch (VDSRecoveringException e) { if (_vds.getStatus() != VDSStatus.PreparingForMaintenance) { throw e; } } moveVDSToMaintenanceIfNeeded(); }