@SuppressWarnings("unchecked")
    public Map<String, Object> downloadPayload(String path) {
        try (InputStream inputStream = externalPayloadStorage.download(path)) {
            return objectMapper.readValue(
                    IOUtils.toString(inputStream, StandardCharsets.UTF_8), Map.class);
        } catch (TransientException te) {
            throw te;
        } catch (Exception e) {
            LOGGER.error("Unable to download payload from external storage path: {}", path, e);
            throw new NonTransientException(
                    "Unable to download payload from external storage path: " + path, e);
        }
    }
Download the payload from the given path.

@param path the relative path of the payload in the {@link ExternalPayloadStorage}
@return the payload object
@throws NonTransientException in case of JSON parsing errors or download errors
core/src/main/java/com/netflix/conductor/core/utils/ExternalPayloadStorageUtils.java