private static IAFUnitController GetController(Connection Connection) { IAFUnitController result = null; if (Connection is WebAPI.WebAPIConnection) { throw new System.NotImplementedException("AFUnitController has not been implemented for WebAPI."); } return(result); }