8.4. Mapped Properties
In the JavaBeans specification properties can only be simple or indexed by a number. BeanUtils adds a new ability for properties to be indexed by strings, as in a Map. Such properties are called mapped properties. These closely parallel indexed properties, except that the get and set methods take strings instead of integers. The following line could be used to retrieve the annotation, indicating whether a track is live:
Mapped properties can be accessed with a shorthand syntax similar to that used for indexed properties. For mapped properties the key appears within parentheses.
PropertyUtils.getMappedProperty(track, "annotations " live");
PropertyUtils.getMappedProperty(track, "annotations(live)");