}
Lifecycle lifecycle =
factory.getLifecycle(lifecycleId);
if (webConfig.getBooleanContextInitParameter(
BooleanWebContextInitParameter.ExternalizeJavaScript)) {
lifecycle.addPhaseListener(new JsfJsResourcePhaseListener());
}
for (int i = 0, len = listeners.length; i < len; i++) {
if (LOGGER.isLoggable(Level.FINER)) {
LOGGER.finer(MessageFormat.format("addPhaseListener({0})", listeners[i]));
}