NX-158: replace Class.forName with classLoader.loadClass

https://issues.sonatype.org/browse/NX-158
https://bamboo.zion.sonatype.com/browse/NX-OSSF48-1