private static Class<?> loadClass(String className) { try { ClassLoader cl = Thread.currentThread().getContextClassLoader(); return cl.loadClass(className.replace('/', '.')); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }
public T build() { return this.build(ClassLoader.getSystemClassLoader()); }