Currently, it's only possible to pass a ClassLoader. However, for more advanced scenarios it would be also useful to pass a ResourceLoader.