Source:
<code>protected void executeCommand() { if (getVds() == null) { return; } log.info("Before Installation host {}, {}", getVds().getId(), getVds().getName()); try { setVdsStatus(VDSStatus.Installing); if (getParameters().getAuthMethod() == AuthenticationMethod.Password) { copyEngineSshId(); } runAnsibleHostDeployPlaybook(); List<VDS> hostlist = vdsDao.getAllForCluster(getClusterId()); if(getVds().getClusterSupportsGlusterService() && (hostlist.size()) >= 3) { String oldGlusterClusterNode = getVds().getName(); <START> String firstGlusterClusterNode = null; String secondGlusterClusterNode = null; <END> VDS vds = getVds(); hostlist.removeIf(hostname -> hostname.getHostName().equals(vds.getHostName())); firstGlusterClusterNode = hostlist.get(0).getName(); secondGlusterClusterNode = hostlist.get(1).getName(); VDS maintanceVds = hostlist.get(0); runAnsibleReconfigureGluster(oldGlusterClusterNode, firstGlusterClusterNode, secondGlusterClusterNode, maintanceVds); } else { if(!getVds().getClusterSupportsGlusterService()) { log.info("Skipping Reconfigure gluster since cluster does not support gluster"); } else if(vdsDao.getAllForCluster(getClusterId()).size()<3) { log.info("Skipping Reconfigure gluster since minimum of three hosts are required in the same cluster"); } } markCurrentCmdlineAsStored(); markVdsReinstalled(); configureManagementNetwork(); if (!getParameters().getActivateHost()) { setVdsStatus(VDSStatus.Maintenance); } else { setVdsStatus(VDSStatus.Initializing); } log.info("After Installation host {}, {}", getVds().getName(), getVds().getVdsType().name()); setSucceeded(true); } catch (VdsInstallException e) { handleError(e, e.getStatus()); } catch (Exception e) { handleError(e, VDSStatus.InstallFailed); } }</code><technical_language>move declaration initialization</technical_language>

Target:
protected void executeCommand() { if (getVds() == null) { return; } log.info("Before Installation host {}, {}", getVds().getId(), getVds().getName()); try { setVdsStatus(VDSStatus.Installing); if (getParameters().getAuthMethod() == AuthenticationMethod.Password) { copyEngineSshId(); } runAnsibleHostDeployPlaybook(); List<VDS> hostlist = vdsDao.getAllForCluster(getClusterId()); if(getVds().getClusterSupportsGlusterService() && (hostlist.size()) >= 3) { String oldGlusterClusterNode = getVds().getName(); VDS vds = getVds(); hostlist.removeIf(host -> host.getHostName().equals(vds.getHostName())); String firstGlusterClusterNode = hostlist.get(0).getName(); String secondGlusterClusterNode = hostlist.get(1).getName(); VDS maintenanceVds = hostlist.get(0); runAnsibleReconfigureGluster(oldGlusterClusterNode, firstGlusterClusterNode, secondGlusterClusterNode, maintenanceVds); } else { if(!getVds().getClusterSupportsGlusterService()) { log.info("Skipping Reconfigure gluster since cluster does not support gluster"); } else if(vdsDao.getAllForCluster(getClusterId()).size()<3) { log.info("Skipping Reconfigure gluster since minimum of three hosts are required in the same cluster"); } } markCurrentCmdlineAsStored(); markVdsReinstalled(); configureManagementNetwork(); if (!getParameters().getActivateHost()) { setVdsStatus(VDSStatus.Maintenance); } else { setVdsStatus(VDSStatus.Initializing); } log.info("After Installation host {}, {}", getVds().getName(), getVds().getVdsType().name()); setSucceeded(true); } catch (VdsInstallException e) { handleError(e, e.getStatus()); } catch (Exception e) { handleError(e, VDSStatus.InstallFailed); } }