code: public static KunderaProxy getProxy(final String entityName, final Class<?> persistentClass,
              final Class<?>[] interfaces, final Method getIdentifierMethod, final Method setIdentifierMethod,
              final Object id, final PersistenceDelegator pd) throws PersistenceException
      {
  
          final CglibLazyInitializer instance = new CglibLazyInitializer(entityName, persistentClass, interfaces, id,
                  getIdentifierMethod, setIdentifierMethod, pd);
  
          final KunderaProxy proxy;
          Class factory = getProxyFactory(persistentClass, interfaces);
  
          proxy = getProxyInstance(factory, instance);
  
          instance.constructed = true;
          return proxy;
  
      }
docs: Gets the proxy.
  
  @param entityName
  the entity name
  @param persistentClass
  the persistent class
  @param interfaces
  the interfaces
  @param getIdentifierMethod
  the get identifier method
  @param setIdentifierMethod
  the set identifier method
  @param id
  the id
  @param persistenceDelegator
  the persistence delegator
  @return the proxy
  @throws PersistenceException
  the persistence exception