public class HibernateAdapter implements ModelAdapter {
private PersistentBeanManager beanManager;
public HibernateAdapter(final SessionFactory sessionFactory) {
// configure gilead
final HibernateUtil persistenceUtil = new HibernateUtil();
persistenceUtil.setSessionFactory(sessionFactory);
// TODO: This should actually be a session bound proxy store instead of a global one
final InMemoryProxyStore proxyStore = new InMemoryProxyStore();
proxyStore.setPersistenceUtil(persistenceUtil);