It is available only in any of the methods using the inherited getAttributes() method, which returns Map<String, Object> with the attribute name as the map key and attribute value as the map value.
Bar bar = (Bar) getAttributes().get("bar");
source share