LPS-51636 use the classloader from the template handler (it could be in another classloader)