Hi, Ok, I’ll keep the implementation relying on the ModelFactory, but will move it to the JavaUseProvider, with an optional import of the org.apache.sling.models.factory package. I just don’t want a separate module any more for just one class, with a lot of duplication. Hope that’s fine for you, Konrad!
Thanks, Radu > On 15 Apr 2020, at 19:09, Konrad Windszus <[email protected]> wrote: > > Wrapping the exception is ok as long as the old exception is still > accessible. One can easily write a ServletFilter which catches (and unwraps) > the exception to throw the 500! > With the adaptTo approach the exception will never hit any servlet filter! >
