Depending on the TEI used, the object will be com.opensymphony.module.sitemesh.Page or com.opensymphony.module.sitemesh.HTMLPage .