private boolean resolveLifecycleProviderFromService(ExternalContext externalContext) {
ClassLoader classLoader = ClassUtils.getContextClassLoader();
ClassLoaders loaders = new ClassLoaders();
loaders.put(classLoader);
DiscoverServiceNames dsn = new DiscoverServiceNames(loaders);
ResourceNameIterator iter = dsn.findResourceNames(LIFECYCLE_PROVIDER);
while (iter.hasNext()) {
String className = iter.nextResourceName();
try
{
Object obj = createClass(className, externalContext);
if (DiscoverableLifecycleProvider.class.isAssignableFrom(obj.getClass())) {
DiscoverableLifecycleProvider discoverableLifecycleProvider =