private void populateWorkflowOutput(Workflow workflow) {
        if (StringUtils.isNotBlank(workflow.getExternalOutputPayloadStoragePath())) {
            MetricsContainer.incrementExternalPayloadUsedCount(
                    workflow.getWorkflowName(),
                    ExternalPayloadStorage.Operation.READ.name(),
                    ExternalPayloadStorage.PayloadType.WORKFLOW_OUTPUT.name());
            workflow.setOutput(
                    downloadFromExternalStorage(
                            ExternalPayloadStorage.PayloadType.WORKFLOW_OUTPUT,
                            workflow.getExternalOutputPayloadStoragePath()));
        }
    }
Populates the workflow output from external payload storage if the external storage path is
specified.

@param workflow the workflow for which the output is to be populated.
client/src/main/java/com/netflix/conductor/client/http/WorkflowClient.java