if (!TomcatVersion.hasAnnotationProcessingSupport()) {
try {
final Context compEnv = (Context) ContextBindings.getClassLoader().lookup("comp/env");
final LegacyAnnotationProcessor annotationProcessor = new LegacyAnnotationProcessor(compEnv);
standardContext.addContainerListener(new ProcessAnnotatedListenersListener(annotationProcessor));
for (final Container container : standardContext.findChildren()) {
if (container instanceof Wrapper) {