public Connection getConnection(String sitecode) { if (!siteIsConnected(sitecode)) { throw new Exception("Site is not connected"); } return (Connection)cxnTable.GetValue(sitecode); }