Can't you just get the right attribute by code?