public DozerBeanMapperBuilder withBeanFactory(String factoryName, BeanFactory beanFactory) {
        this.beanFactories.put(factoryName, beanFactory);
        return this;
    }
Registers a {@link BeanFactory} for the mapper.
Consecutive calls of this method with the same factory name will override previously provided value.
<p>
By default, no custom bean factories are registered.

@param factoryName unique name of the factory.
@param beanFactory factory to be used by mapper.
@return modified builder to be further configured.
core/src/main/java/com/github/dozermapper/core/DozerBeanMapperBuilder.java