private static string GetRequiredAttributeValue(IConfiguration configuration, string attributeName)
{
String value = configuration.Attributes[attributeName];
if (string.IsNullOrEmpty(value))
{
String message = String.Format("{0} elements expects required non blank attribute {1}",
configuration.Name, attributeName);
throw new Exception(message);
}
return value;
}