public string GetString(string key)
{
Object value = GetObjectProperty(key);
if(value == null)
{
return null;
}
else if((value is IList) || (value is IDictionary))
{
throw new MessageFormatException(" cannot read a boolean from " + value.GetType().Name);
}
return value.ToString();
}