Instead of hardcoding class names in your Java code (e.g. String clz = “com.foo.ReportFactory”;),
try generating it (e.g. String clz = ReportFactory.class.getName();) - it’s a lot less brittle!