Source:
public AppDeploymentRequest createRequest( TaskExecution taskExecution, TaskExecutionInformation taskExecutionInformation, List<String> commandLineArgs, String platformName) { TaskDefinition taskDefinition = taskExecutionInformation.getTaskDefinition(); String registeredAppName = taskDefinition.getRegisteredAppName(); Map<String, String> appDeploymentProperties = new HashMap<>(commonApplicationProperties.getTask()); appDeploymentProperties.putAll( TaskServiceUtils.extractAppProperties( taskExecutionInformation.isComposed()? "composed-task-runner" : registeredAppName, taskExecutionInformation.getTaskDeploymentProperties())); Map<String, String> deployerDeploymentProperties = DeploymentPropertiesUtils .extractAndQualifyDeployerProperties(taskExecutionInformation.getTaskDeploymentProperties(), taskExecutionInformation.isComposed()? "composed-task-runner" : registeredAppName); if (StringUtils.hasText(this.dataflowServerUri) && taskExecutionInformation.isComposed()) { TaskServiceUtils.updateDataFlowUriIfNeeded(this.dataflowServerUri, appDeploymentProperties, commandLineArgs); } AppDefinition revisedDefinition = TaskServiceUtils.mergeAndExpandAppProperties(taskDefinition, taskExecutionInformation.getMetadataResource(), appDeploymentProperties, this.whitelistProperties); List<String> updatedCmdLineArgs = (taskExecutionInformation.isComposed())?this.updateCommandLineArgs(commandLineArgs, taskExecution, platformName, taskExecutionInformation.getTaskDefinition().getRegisteredAppName()):this.updateCommandLineArgs(commandLineArgs, taskExecution, platformName); AppDeploymentRequest request = new AppDeploymentRequest(revisedDefinition, taskExecutionInformation.getAppResource(), deployerDeploymentProperties, updatedCmdLineArgs); logger.debug("Created AppDeploymentRequest = " + request.toString() + " AppDefinition = " + request.getDefinition().toString()); return request; }

Target:
public AppDeploymentRequest createRequest( TaskExecution taskExecution, TaskExecutionInformation taskExecutionInformation, List<String> commandLineArgs, String platformName) { TaskDefinition taskDefinition = taskExecutionInformation.getTaskDefinition(); String registeredAppName = taskDefinition.getRegisteredAppName(); Map<String, String> appDeploymentProperties = new HashMap<>(commonApplicationProperties.getTask()); appDeploymentProperties.putAll( TaskServiceUtils.extractAppProperties( taskExecutionInformation.isComposed()? "composed-task-runner" : registeredAppName, taskExecutionInformation.getTaskDeploymentProperties())); Map<String, String> deployerDeploymentProperties = DeploymentPropertiesUtils .extractAndQualifyDeployerProperties(taskExecutionInformation.getTaskDeploymentProperties(), taskExecutionInformation.isComposed()? "composed-task-runner" : registeredAppName); if (StringUtils.hasText(this.dataflowServerUri) && taskExecutionInformation.isComposed()) { TaskServiceUtils.updateDataFlowUriIfNeeded(this.dataflowServerUri, appDeploymentProperties, commandLineArgs); } AppDefinition revisedDefinition = TaskServiceUtils.mergeAndExpandAppProperties(taskDefinition, taskExecutionInformation.getMetadataResource(), appDeploymentProperties, this.whitelistProperties); List<String> updatedCmdLineArgs = (taskExecutionInformation.isComposed())?this.updateCommandLineArgs(commandLineArgs, taskExecution, platformName, registeredAppName):this.updateCommandLineArgs(commandLineArgs, taskExecution, platformName); AppDeploymentRequest request = new AppDeploymentRequest(revisedDefinition, taskExecutionInformation.getAppResource(), deployerDeploymentProperties, updatedCmdLineArgs); logger.debug("Created AppDeploymentRequest = " + request.toString() + " AppDefinition = " + request.getDefinition().toString()); return request; }