public TaskDef getTaskDef(String taskType) {
        TaskDef taskDef = metadataDAO.getTaskDef(taskType);
        if (taskDef == null) {
            throw new NotFoundException("No such taskType found by name: %s", taskType);
        }
        return taskDef;
    }
@param taskType Task to retrieve
@return Task Definition
core/src/main/java/com/netflix/conductor/service/MetadataServiceImpl.java