public String getBeanId() {
        Class<?> factoryClass = objectFactory(destObjClass, beanContainer).getClass();
        Class<?> destClass = null;
        String methodName = "create" + destObjClass.substring(destObjClass.lastIndexOf(".") + 1) + StringUtils.capitalize(destFieldName);

        try {
            Method method = ReflectionUtils.findAMethod(factoryClass, methodName, beanContainer);
            Class<?>[] parameterTypes = method.getParameterTypes();
            for (Class<?> parameterClass : parameterTypes) {
                destClass = parameterClass;
                break;
            }
        } catch (NoSuchMethodException e) {
            MappingUtils.throwMappingException(e);
        }

        return (destClass != null) ? destClass.getCanonicalName() : null;
    }
Resolve the beanId associated to destination field name

@return bean id
core/src/main/java/com/github/dozermapper/core/converters/JAXBElementConverter.java