public TInterface FindByControlName <TInterface>(string controlName) where TInterface : class
 {
     return(TcControlMapper.Map <TInterface>(this.FindGeneric(Search.ByControlName(controlName))));
 }
 /// <summary>
 /// Finds the specified uid.
 /// </summary>
 /// <typeparam name="TInterface">The type of the interface.</typeparam>
 /// <param name="uid">The uid.</param>
 /// <param name="predicate"></param>
 /// <param name="depth"></param>
 /// <returns></returns>
 public TInterface Find <TInterface>(string uid, Predicate <IControl> predicate = null, int?depth = null) where TInterface : class
 {
     return(TcControlMapper.Map <TInterface>(this.FindGeneric(Search.ByUid(uid), predicate, depth)));
 }