private WorkflowDefSummary fromWorkflowDef(WorkflowDef def) {
        WorkflowDefSummary summary = new WorkflowDefSummary();
        summary.setName(def.getName());
        summary.setVersion(def.getVersion());
        summary.setCreateTime(def.getCreateTime());

        return summary;
    }
@param event name of the event
@param activeOnly if true, returns only the active handlers
@return Returns the list of all the event handlers for a given event
core/src/main/java/com/netflix/conductor/service/MetadataServiceImpl.java