@Sanne, so here is the main rub with purely relying on the ORM ClassLoaderService. The ORM module cannot see certain classes and service files available to the Search module. So you still would need to try loading via the current class loader if the ORM class loader fails (or you would first try the current one, not sure!?).

In a perfect world I would somehow pass the current class loader to the ORM bootstrap, but that might be hard and timing wise too late.