public BCAPI(long publisherId)
        {
            BrightcoveConfig bc = (BrightcoveConfig)ConfigurationManager.GetSection("brightcove");

            foreach (AccountConfigElement a in bc.Accounts)
            {
                if (a.PublisherID.Equals(publisherId))
                {
                    Account = a;
                }
            }
        }
        public BCAPI(string accountName)
        {
            BrightcoveConfig bc = (BrightcoveConfig)ConfigurationManager.GetSection("brightcove");

            foreach (AccountConfigElement a in bc.Accounts)
            {
                if (a.Name.Equals(accountName))
                {
                    Account = a;
                }
            }
        }
        public void ResetApiConnection()
        {
            if (this.accountConfig == null)
            {
                this.bcApi = null;

                return;
            }

            try
            {
                BrightcoveConfig config = new BrightcoveConfig();
                config.Accounts.Add(this.accountConfig);
                this.bcApi = new BCAPI(config.Accounts[0]);
            }
            catch
            {
                // Do nothing
            }
        }