change access to nested object so that it works with tomcat 6