Moved peace of code in try and forgot uuid in device-desc template.