protected string GetResourceURI() { string resourceWriterClass = ConfigurationManager.AppSettings.Get("MesaSuite.Common.ResourceWriter." + API.ToString()); if (string.IsNullOrEmpty(resourceWriterClass)) { resourceWriterClass = ConfigurationManager.AppSettings.Get("MesaSuite.Common.ResourceWriter"); } Type resourceWriterType = Assembly.GetExecutingAssembly().GetType(resourceWriterClass); if (resourceWriterType == null) { throw new ConfigurationErrorsException("Resource Writer must be defined in the configuration file"); } IResourceWriter writer = (IResourceWriter)Activator.CreateInstance(resourceWriterType); return(writer.Write(this)); }