@Override
    public Class<?> getRealClass(Class<?> clazz) {
        if (isProxy(clazz)) {
            Class<?> superclass = clazz.getSuperclass();
            // Proxy could be created based on set of interfaces. In this case we will rely on inheritance mappings.
            if (DozerConstants.BASE_CLASS.equals(superclass.getName())) {
                return clazz;
            }
            return superclass;
        }
        return clazz;
    }
Default implementation. Supports only simple proxy cases of Cglib and Javassist.
For more complicated scenarios consider using framework specific ProxyResolver.
core/src/main/java/com/github/dozermapper/core/util/DefaultProxyResolver.java