Incorrect exception handling in XmlDevice::getDefinition fixed
Added Bob's explanatory comments