public Optional<WorkflowDef> getLatestWorkflow(String name) {
        return metadataDAO.getLatestWorkflowDef(name);
    }
@param name Name of the workflow to retrieve
@return Latest version of the workflow definition
core/src/main/java/com/netflix/conductor/service/MetadataServiceImpl.java