public void build() {
            // TODO Check Map to Map mapping
            FieldMap result;
            if (srcField.isMapTypeCustomGetterSetterField() || destField.isMapTypeCustomGetterSetterField()
                || classMap.isSrcClassMapTypeCustomGetterSetter() || classMap.isDestClassMapTypeCustomGetterSetter()) {
                result = new MapFieldMap(classMap, beanContainer, destBeanCreator, propertyDescriptorFactory);
            } else if (srcField.isCustomGetterSetterField() || destField.isCustomGetterSetterField()) {
                result = new CustomGetSetMethodFieldMap(classMap, beanContainer, destBeanCreator, propertyDescriptorFactory);
            } else {
                result = new GenericFieldMap(classMap, beanContainer, destBeanCreator, propertyDescriptorFactory);
            }

            result.setSrcField(srcField);
            result.setDestField(destField);
            result.setType(type);
            result.setRelationshipType(relationshipType);
            result.setRemoveOrphans(removeOrphans);

            result.setSrcHintContainer(srcHintContainer);
            result.setDestHintContainer(destHintContainer);
            result.setSrcDeepIndexHintContainer(srcDeepIndexHintContainer);
            result.setDestDeepIndexHintContainer(destDeepIndexHintContainer);

            if (copyByReferenceSet) {
                result.setCopyByReference(copyByReference);
            }
            result.setMapId(mapId);

            result.setCustomConverter(customConverter);
            result.setCustomConverterId(customConverterId);
            result.setCustomConverterParam(customConverterParam);

            classMap.addFieldMapping(result);
        }
Builder API for achivieng the same effect as custom Xml mappings.
Is intended to be used from application to prepare repetetive mappings programmatically.
<p>
Note that some of the fail-fast checks from Xml validation has not yet been ported.
Responsibility on filling all mandatory attributes is left to API user.
<p>
Not thread safe
core/src/main/java/com/github/dozermapper/core/loader/DozerBuilder.java