public static string GetDescription(this ActivityWrapper activityWrapper) { Activity activity = activityWrapper.Current; string key = activity.GetType().ToString(); try { TemplateRowModel data = _descriptionTemplate.GetTemplateFor(key); return(Translate(activityWrapper, data.Description)); } catch (KeyNotFoundException) { return(String.Format("TBD <<Please add a description here, or alternatively, provide a template for {0} >>", key)); } }