I like to \'guess\' attribute names from getter methods. So \'getSomeAttribute\' shall be converted to \'someAttribute\'.
Usually I do something like
I think your solution is just fine. I dont think there is any easier way to do it.