For NetBeans modules converted to OSGi bundles, it would be appropriate to support LayerProvider. Not implementing for now since it is not yet used outside of ergonomics.
OSGiRepository.SFS should maintain and listen to a Lookup.Result<LayerProvider>. Could simply recreate all the layers in resetAll, or for efficiency could use this.fss to track unchanged ones. Changes in the L.R, or calls to overridden refreshAdditionalLayers, should recalculate list.
OSGiRepositoryTest could have a test with a bundle with a LP registered whose ModuleInstall checks content of SFS, calls rAL (after changing some flag in the LP), then checks content again.
No plans to work on this any time soon.