class OSGIServiceContext implements ServiceContext {

    @Override
    public <T> List<T> getServices(Class<T> serviceType, Supplier<List<T>> supplier) {
        LOG.finest("TAMAYA  Loading services: " + serviceType.getName());
        List<T> services = loadServices(serviceType, null);
        if(services.isEmpty() && supplier!=null) {
            services = supplier.get();
            try {
                for (T t : services) {
                    this.osgiServiceLoader.getBundleContext().registerService(serviceType, t, new Hashtable<>());
                }
            } catch (Exception e) {
                LOG.log(Level.SEVERE, "Error while getting service.", e);
            }
        }
        return services;
    }

    public  OSGIServiceContext(OSGIServiceLoader osgiServiceLoader);

}