package org.jboss.windup.addon.config.furnace;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;

import org.jboss.forge.furnace.Furnace;
import org.ocpsoft.common.spi.ServiceLocator;

public class FurnaceServiceLocator implements ServiceLocator
{

    @Override
    public <T> Collection<Class<T>> locate(final Class<T> type)
    {
        List<Class<T>> result = new ArrayList<>();

        // the BeanManager may be not available during Rewrite startup
        Furnace furnace = FurnaceHolder.getFurnace();
        if (furnace != null && furnace.getStatus().isStarted())
        {
            Set<Class<T>> types = furnace.getAddonRegistry().getExportedTypes(type);
            result.addAll(types);
        }

        return result;

    }
}
@@ -435,79 +435,8 @@
 );%0A%0A
-        // the BeanManager may be not available during Rewrite startup%0A
     

remove lie