private Dictionary <string, Warehouse_OutputManager_Config> GetConfig()
        {
            Dictionary <string, Warehouse_OutputManager_Config> configuration = new Dictionary <string, Warehouse_OutputManager_Config>();

            IDataReader reader;

            _printQueue.Getprintconf(out reader);

            if (reader != null)
            {
                try
                {
                    while (reader.Read())
                    {
                        Warehouse_OutputManager_Config conf = new Warehouse_OutputManager_Config();

                        if (reader["WHID"] == DBNull.Value)
                        {
                            conf.WarehouseId = "";
                        }
                        else
                        {
                            conf.WarehouseId = reader["WHID"] as String;
                        }

                        if (reader["OMID"] == DBNull.Value)
                        {
                            conf.WarehouseId = "";
                        }
                        else
                        {
                            conf.OutputManagerId = reader["OMID"] as String;
                        }

                        if (reader["MAIN_URL"] == DBNull.Value)
                        {
                            conf.Main_Url = "";
                        }
                        else
                        {
                            conf.Main_Url = reader["MAIN_URL"] as String;
                        }

                        if (reader["FALLBACK_URL"] == DBNull.Value)
                        {
                            conf.Fallback_Url = "";
                        }
                        else
                        {
                            conf.Fallback_Url = reader["FALLBACK_URL"] as String;
                        }


                        if (!string.IsNullOrEmpty(conf.WarehouseId))
                        {
                            configuration.Add(conf.WarehouseId, conf);
                        }
                    }
                }
                finally
                {
                    if (reader != null)
                    {
                        reader.Close();
                    }
                }
            }

            return(configuration);
        }