@Override
    public <T> T unenhanceObject(T object) {
        if (object instanceof HibernateProxy) {
            HibernateProxy hibernateProxy = (HibernateProxy)object;
            LazyInitializer lazyInitializer = hibernateProxy.getHibernateLazyInitializer();

            return (T)lazyInitializer.getImplementation();
        }
        return object;
    }
Hibernate specific implementation. Checks for HibernateProxy interface and uses Hibernate internal API
to unwrap proxies.
core/src/main/java/com/github/dozermapper/core/util/HibernateProxyResolver.java