gen: patch tracereader to getActivityAttributeByName