Your code is "evil" because a java.lang.String
is not really a bean. Significantly, it doesn't have a "set" method to change its text (that's intentional, it's meant to be immutable).
The way you access beans is to declare one, and then use its properties (i.e. the names behind the get() and set() methods) to change it. You cannot directly change the actual bean instance, only its values.