public static string GetValueForKey(string key)
{
var settings = Factory.GetConfigNode("andover/settings");
var node = settings.SelectSingleNode(string.Format("add[@key='{0}']", key));
bool isInValid = node == null || node.Attributes == null || node.Attributes["value"] == null;
return isInValid ? string.Empty : node.Attributes["value"].Value;
}