jsimone/devcenter-embedded-tomcat — comment on commit 4956bf2847e0a0266b83316a38aba02ba9b80878
File: src/main/java/launch/Main.java line 25
By jsimone:

The addWebapp is needed. It could be changed to not put the Context that it returns in a variable since we only use it in the example line that is commented out. I left it like this because it's not intuitive that addWebapp would return a Context. This API is also poorly documented on the Tomcat side so I feel that we have some responsibility to show this.