class InfoToolHelperLookup {

    public static InfoToolHelper getHelper(Layer layer) {
        loadProviders();
        
        for (InfoToolHelper helper : cachedInstances) {
            try {
                if (helper.isSupportedLayer(layer)) {
                    return helper.getClass().newInstance();
                }
                
            } catch (Exception ex) {
                throw new RuntimeException(ex);
            }
        }

        return null;
    }

}