private static DozerField prepareField(String name, String type) {
        if (MappingUtils.isBlankOrNull(name)) {
            throw new MappingException("Field name can not be empty");
        }
        String fieldName;
        String fieldType = null;
        if (isIndexed(name)) {
            fieldName = getFieldNameOfIndexedField(name);
        } else {
            fieldName = name;
        }
        if (StringUtils.isNotEmpty(type)) {
            fieldType = type;
        }
        DozerField field = new DozerField(fieldName, fieldType);
        if (isIndexed(name)) {
            field.setIndexed(true);
            field.setIndex(getIndexOfIndexedField(name));
        }
        return field;
    }
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