I would prefer to do it another way. Unfortunately, I didn't find any cleaner way. So I did it the same way it has already be done for the getValue() method from PropertyClass. At least it makes things consistent.