fileConfig.setSourceType("net.freedom.gj.beans.EntityBeanA");
fileConfig.setTargetType("net.freedom.gj.beans.EntityBeanB");
//You can use multiple configuration files to map single complex object.
//Optionally,using text custom format file.
SimpleFileMapperConfiguration additionalConfig = new SimpleFileMapperConfiguration();
additionalConfig.setConfigurationFile("/net/freedom/gj/beans/txt/beanA-to-beanB-mapping2.txt");
additionalConfig.setSourceType("net.freedom.gj.beans.EntityBeanA");
additionalConfig.setTargetType("net.freedom.gj.beans.EntityBeanB");
//Simple factory, suitable where no CDI capability available.
MapperConfigurationBeanFactory factory = new MapperConfigurationBeanFactory();
factory.add(fileConfig);
factory.add(additionalConfig);