Source:
public void render(Context context, VDS vds, SafeHtmlBuilder sb) { if (vds == null) { return; } ApplicationResources resources = ClientGinjectorProvider.getApplicationResources(); VDSStatus status = vds.getStatus(); ImageResource statusImage = null; switch (status) { case Unassigned: case NonResponsive: case InstallFailed: case Connecting: case Down: statusImage = resources.downImage(); break; case PreparingForMaintenance: statusImage = resources.prepareImage(); case Maintenance: statusImage = resources.maintenanceImage(); break; case Up: statusImage = resources.upImage(); break; case Error: statusImage = resources.errorImage(); break; case Installing: statusImage = resources.hostInstallingImage(); break; case Reboot: statusImage = resources.waitImage(); break; case NonOperational: statusImage = resources.nonOperationalImage(); break; case PendingApproval: statusImage = resources.unconfiguredImage(); break; case Initializing: statusImage = resources.waitImage(); break; default: statusImage = resources.downImage(); } ImageResource alertImage = resources.alertImage(); SafeHtml statusImageHtml = SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(statusImage).getHTML()); SafeHtml alertImageHtml = SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(alertImage).getHTML()); sb.appendHtmlConstant("<div style=\"text-align: center; padding-top: 6px;\">"); sb.append(statusImageHtml); boolean getnet_config_dirty = vds.getNetConfigDirty() == null ? false : vds.getNetConfigDirty().booleanValue(); boolean showPMAlert = vds.getVdsGroupSupportsVirtService() && !vds.getpm_enabled(); if (showPMAlert || getnet_config_dirty) { sb.append(alertImageHtml); } sb.appendHtmlConstant("</div>"); }

Target:
public void render(Context context, VDS vds, SafeHtmlBuilder sb) { if (vds == null) { return; } ApplicationResources resources = ClientGinjectorProvider.getApplicationResources(); VDSStatus status = vds.getStatus(); ImageResource statusImage = null; switch (status) { case Unassigned: case NonResponsive: case InstallFailed: case Connecting: case Down: statusImage = resources.downImage(); break; case PreparingForMaintenance: statusImage = resources.prepareImage(); break; case Maintenance: statusImage = resources.maintenanceImage(); break; case Up: statusImage = resources.upImage(); break; case Error: statusImage = resources.errorImage(); break; case Installing: statusImage = resources.hostInstallingImage(); break; case Reboot: statusImage = resources.waitImage(); break; case NonOperational: statusImage = resources.nonOperationalImage(); break; case PendingApproval: statusImage = resources.unconfiguredImage(); break; case Initializing: statusImage = resources.waitImage(); break; default: statusImage = resources.downImage(); } ImageResource alertImage = resources.alertImage(); SafeHtml statusImageHtml = SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(statusImage).getHTML()); SafeHtml alertImageHtml = SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(alertImage).getHTML()); sb.appendHtmlConstant("<div style=\"text-align: center; padding-top: 6px;\">"); sb.append(statusImageHtml); boolean getnet_config_dirty = vds.getNetConfigDirty() == null ? false : vds.getNetConfigDirty().booleanValue(); boolean showPMAlert = vds.getVdsGroupSupportsVirtService() && !vds.getpm_enabled(); if (showPMAlert || getnet_config_dirty) { sb.append(alertImageHtml); } sb.appendHtmlConstant("</div>"); }