Source:
<code>private void handleAccessToken(List<String> commandLineArgs, TaskExecutionInformation taskExecutionInformation) { boolean containsAccessToken = false; boolean useUserAccessToken = false; final String dataflowServerAccessTokenKey = "dataflow-server-access-token"; final String dataflowServerUseUserAccessToken = "dataflow-server-use-user-access-token"; for (String commandLineArg : commandLineArgs) { if (commandLineArg.startsWith("--" + dataflowServerAccessTokenKey)) { containsAccessToken = true; } if (StringUtils.trimAllWhitespace(commandLineArg).equalsIgnoreCase("--" + dataflowServerUseUserAccessToken + "=true")) { useUserAccessToken = true; } } final String dataflowAccessTokenPropertyKey = "app." + taskExecutionInformation.getTaskDefinition().getRegisteredAppName() + "." + dataflowServerAccessTokenKey; for (Map.Entry<String, String> taskDeploymentProperty : taskExecutionInformation.getTaskDeploymentProperties().entrySet()) { if (taskDeploymentProperty.getKey().equals(dataflowAccessTokenPropertyKey)) { containsAccessToken = true; } } <START> if(isUseUserAccessToken()) { <END> useUserAccessToken = true; } if (!containsAccessToken && useUserAccessToken && oauth2TokenUtilsService != null) { final String token = oauth2TokenUtilsService.getAccessTokenOfAuthenticatedUser(); if (token != null) { taskExecutionInformation.getTaskDeploymentProperties().put(dataflowAccessTokenPropertyKey, token); } } }</code><technical_language>I mising here: isUseUserAccessToken() returns true if token composedTaskRunnerConfigurationProperties is null isUserAccessToken is null. if isUserAccessToken is false, method return true. this useUserAccessToken set true false</technical_language>

Target:
private void handleAccessToken(List<String> commandLineArgs, TaskExecutionInformation taskExecutionInformation) { boolean containsAccessToken = false; boolean useUserAccessToken = false; final String dataflowServerAccessTokenKey = "dataflow-server-access-token"; final String dataflowServerUseUserAccessToken = "dataflow-server-use-user-access-token"; for (String commandLineArg : commandLineArgs) { if (commandLineArg.startsWith("--" + dataflowServerAccessTokenKey)) { containsAccessToken = true; } if (StringUtils.trimAllWhitespace(commandLineArg).equalsIgnoreCase("--" + dataflowServerUseUserAccessToken + "=true")) { useUserAccessToken = true; } } final String dataflowAccessTokenPropertyKey = "app." + taskExecutionInformation.getTaskDefinition().getRegisteredAppName() + "." + dataflowServerAccessTokenKey; for (Map.Entry<String, String> taskDeploymentProperty : taskExecutionInformation.getTaskDeploymentProperties().entrySet()) { if (taskDeploymentProperty.getKey().equals(dataflowAccessTokenPropertyKey)) { containsAccessToken = true; } } if(TaskServiceUtils.isUseUserAccessToken(this.taskConfigurationProperties, this.composedTaskRunnerConfigurationProperties)) { useUserAccessToken = true; } if (!containsAccessToken && useUserAccessToken && oauth2TokenUtilsService != null) { final String token = oauth2TokenUtilsService.getAccessTokenOfAuthenticatedUser(); if (token != null) { taskExecutionInformation.getTaskDeploymentProperties().put(dataflowAccessTokenPropertyKey, token); } } }