Cleanup: the "entry.name" fields was read into a local variable. Use the variable.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1593364 13f79535-47bb-0310-9956-ffa450edef68
Merged r1593335 from tomcat/trunk:
Review of r1593288:
Do not forget to call the symmetrical unset method on stop.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1593371 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56472#c1

Per my comment on that issue, always set 'NamingContextListener.initialized' field to 'true'
so that its cleanup on configure_stop event is not skipped.
It is backport of r1593356 from tomcat/trunk.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1593389 13f79535-47bb-0310-9956-ffa450edef68
Merged r1593387 from tomcat/trunk:
Small optimization: move "getRegistry(null, null)" call out of the loop.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1593390 13f79535-47bb-0310-9956-ffa450edef68