if (selectedDeploymentComponent == null || deploymentPayload == null) {
return;
}
// select associated/dependent components too
Component component = selectedDeploymentComponent.getComponent();
if (component != null && component.isWithinFolder()) {
if (!event.getChecked()
&& selectedDeploymentComponent.getDestinationSummary().equals(DeploymentSummary.DELETED)) {
handleUnCheckedSubFolderComponent(selectedDeploymentComponent);
} else if (event.getChecked()
&& selectedDeploymentComponent.getDestinationSummary().equals(DeploymentSummary.NEW)) {
handleCheckedSubFolderComponent(selectedDeploymentComponent);
}
} else if (component != null && Constants.FOLDER.equals(component.getComponentType())) {
if (!event.getChecked()) {
if (selectedDeploymentComponent.getDestinationSummary().equals(DeploymentSummary.NEW)) {
handleUncheckedFolderComponent(selectedDeploymentComponent);
}
} else if (event.getChecked()