public DozerBeanMapperBuilder withClassLoader(ClassLoader classLoader) {
        this.fluentDefinedClassLoader = new DefaultClassLoader(classLoader);
        return this;
    }
Sets classloader to be used whenever Dozer needs to load a class or resource.
<p>
By default, if Dozer is executed in OSGi environment, {@link com.github.dozermapper.core.osgi.OSGiClassLoader} will be
used (i.e. delegate loading to Dozer bundle classloader). If Dozer is executed in non-OSGi environment,
classloader of {@link DozerBeanMapperBuilder} will be used (wrapped into {@link DefaultClassLoader}).

@param classLoader custom classloader to be used by Dozer. Will be wrapped into {@link DefaultClassLoader}.
@return modified builder to be further configured.
core/src/main/java/com/github/dozermapper/core/DozerBeanMapperBuilder.java