EntityContainer theContainer = manager.getContainer();
beanClass = theContainer.getBeanClass();
fieldMap = createFieldMap(entity);
selectorMap = createSelectorMap(entity, manager.getQueryFactory());
// use proxy generator to create one implementation
EntityBridgeInvocationHandler handler = new EntityBridgeInvocationHandler(fieldMap, selectorMap, beanClass);
Class[] classes = new Class[]{beanClass};
ClassLoader classLoader = beanClass.getClassLoader();
Object o = Proxy.newProxyInstance(classLoader, classes, handler);