Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56588
Update according to the changes in Tomcat 8:
Un-deprecate Context.findApplicationListeners()
It is followup to r1600505, r1600638.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1604029 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56611
Refactor code to remove inefficient calls to Method.isAnnotationPresent(). 
Additional fixes that were missed in r1603591.
Merged r1604024 from tomcat/trunk.


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