final Method proxySetIdentifierMethod = idSetterMethod == null || proxyInterface == null ? null
: ReflectHelper.getMethod(proxyInterface, idSetterMethod);
ProxyFactory pf = buildProxyFactoryInternal(thePersistentClass, idGetter, idSetter);
try {
pf.postInstantiate(getEntityName(), mappedClass, proxyInterfaces, proxyGetIdentifierMethod,
proxySetIdentifierMethod,
thePersistentClass.hasEmbeddedIdentifier() ? (AbstractComponentType) thePersistentClass
.getIdentifier().getType() : null);
} catch (final HibernateException he) {
log.warn("could not create proxy factory for:" + getEntityName(), he);