AddonLifecycleProvider.class, classLoader);
Iterator<AddonLifecycleProvider> iterator = serviceLoader.iterator();
if (serviceLoader != null && iterator.hasNext())
{
AddonLifecycleProvider provider = iterator.next();
if (ClassLoaders.ownsClass(classLoader, provider.getClass()))
{
if (ControlType.ALL.equals(provider.getControlType()))
{
result = new AddonLifecycleProviderEntry(dependency, provider);
}
if (ControlType.DEPENDENTS.equals(provider.getControlType()))
{
result = new AddonLifecycleProviderEntry(dependency, provider);
}
if (result != null && iterator.hasNext())