public static ActionWrapper[] GetActionLeafNodes(this NakedObjectSpecification spec)
 {
     return(spec.GetObjectActions().SelectMany(GetActionLeafNodes).OrderBy(a => a.getId()).ToArray());
 }