Source:
<code>private void showRebalanceStatus() { if (getSelectedItem() == null) { return; } final ConfirmationModel cModel = new ConfirmationModel(); final GlusterVolumeEntity volumeEntity = (GlusterVolumeEntity) getSelectedItem(); setConfirmWindow(cModel); cModel.setTitle(ConstantsManager.getInstance().getConstants().rebalanceStatusTitle()); cModel.startProgress(ConstantsManager.getInstance().getConstants().rebalanceStatusFetchMessage()); AsyncDataProvider.getGlusterRebalanceStatus(new AsyncQuery(this, new INewAsyncCallback() { @Override public void onSuccess(Object model, Object returnValue) { GlusterVolumeTaskStatusEntity rebalanceStatusEntity = (GlusterVolumeTaskStatusEntity) returnValue; if ((rebalanceStatusEntity == null) || (rebalanceStatusEntity.getStatusSummary().getStatus() == JobExecutionStatus.UNKNOWN)) { cModel.stopProgress(); cModel.setMessage(ConstantsManager.getInstance().getMessages().rebalanceStatusConfirmationMessage(volumeEntity.getName())); UICommand rebalanceStatusOk = new UICommand("rebalanceNotStarted", VolumeListModel.this); rebalanceStatusOk.setTitle(ConstantsManager.getInstance().getConstants().ok()); rebalanceStatusOk.setIsCancel(true); cModel.getCommands().add(rebalanceStatusOk); } else { <START> cModel.stopProgress(); <END> setConfirmWindow(null); VolumeRebalanceStatusModel rebalanceStatusModel = new VolumeRebalanceStatusModel(volumeEntity); rebalanceStatusModel.setTitle(ConstantsManager.getInstance() .getConstants() .volumeRebalanceStatusTitle()); setWindow(rebalanceStatusModel); rebalanceStatusModel.getVolume().setEntity(volumeEntity.getName()); rebalanceStatusModel.getCluster().setEntity(volumeEntity.getVdsGroupName()); rebalanceStatusModel.showStatus(rebalanceStatusEntity); UICommand cancelRebalance = new UICommand("CancelRebalanceStatus", VolumeListModel.this); cancelRebalance.setTitle(ConstantsManager.getInstance().getConstants().close()); cancelRebalance.setIsCancel(true); rebalanceStatusModel.getCommands().add(cancelRebalance); } } }), volumeEntity.getClusterId(), volumeEntity.getId()); }</code><technical_language>duplicate line in clauses</technical_language>

Target:
private void showRebalanceStatus() { if (getSelectedItem() == null) { return; } final ConfirmationModel cModel = new ConfirmationModel(); final GlusterVolumeEntity volumeEntity = (GlusterVolumeEntity) getSelectedItem(); setConfirmWindow(cModel); cModel.setTitle(ConstantsManager.getInstance().getConstants().rebalanceStatusTitle()); cModel.startProgress(ConstantsManager.getInstance().getConstants().rebalanceStatusFetchMessage()); AsyncDataProvider.getGlusterRebalanceStatus(new AsyncQuery(this, new INewAsyncCallback() { @Override public void onSuccess(Object model, Object returnValue) { GlusterVolumeTaskStatusEntity rebalanceStatusEntity = (GlusterVolumeTaskStatusEntity) returnValue; cModel.stopProgress(); if ((rebalanceStatusEntity == null) || (rebalanceStatusEntity.getStatusSummary().getStatus() == JobExecutionStatus.UNKNOWN)) { cModel.setMessage(ConstantsManager.getInstance().getMessages().rebalanceStatusConfirmationMessage(volumeEntity.getName())); UICommand rebalanceStatusOk = new UICommand("rebalanceNotStarted", VolumeListModel.this); rebalanceStatusOk.setTitle(ConstantsManager.getInstance().getConstants().ok()); rebalanceStatusOk.setIsCancel(true); cModel.getCommands().add(rebalanceStatusOk); } else { setConfirmWindow(null); VolumeRebalanceStatusModel rebalanceStatusModel = new VolumeRebalanceStatusModel(volumeEntity); rebalanceStatusModel.setTitle(ConstantsManager.getInstance() .getConstants() .volumeRebalanceStatusTitle()); setWindow(rebalanceStatusModel); rebalanceStatusModel.getVolume().setEntity(volumeEntity.getName()); rebalanceStatusModel.getCluster().setEntity(volumeEntity.getVdsGroupName()); rebalanceStatusModel.showStatus(rebalanceStatusEntity); UICommand cancelRebalance = new UICommand("CancelRebalanceStatus", VolumeListModel.this); cancelRebalance.setTitle(ConstantsManager.getInstance().getConstants().close()); cancelRebalance.setIsCancel(true); rebalanceStatusModel.getCommands().add(cancelRebalance); } } }), volumeEntity.getClusterId(), volumeEntity.getId()); }