for (Class<?> wfClass : map.values()) {
wfMapLatest.put(wfClass.getName(), wfClass); // workflow is always accessible by its name
WorkflowDescription wfDesc = wfClass.getAnnotation(WorkflowDescription.class);
if (wfDesc != null) {
final String alias = wfDesc.alias();
final WorkflowVersion version = new WorkflowVersion(wfDesc.majorVersion(), wfDesc.minorVersion(), wfDesc.patchLevelVersion());
wfMapVersioned.put(createAliasName(alias, version), wfClass);
WorkflowVersion existingLatest = latest.get(alias);
if (existingLatest == null || version.isLargerThan(existingLatest)) {