The source text from Your First Cup: An Introduction to the Java EE Platform is a bit confusing in a few respects here, as pedantically annotated in the spirit of UML™ Parsing Analysis.
Firstly, we are told that 'The firstcup web application .. accesses DukesAgeResource to display Duke's age'. Does this mean that the DukesAgeResource can display Duke's age ? Or rather, that Duke's age is retrieved for display by the firstcup application ?
Also, 'The firstcup web application .. accesses DukesBirthdayBean to calculate who is older'. Does this mean there is an operation that returns a person (the Duke or the User), whoever is older ? Or is there a boolean ?
This source text snippets lends itself well to an analysis Activity Diagram, shown next ..