public Session create(Bean<Session> bean, CreationalContext<Session> arg0)
{
try
{
SessionFactory sf = getSessionFactory();
Session session = sf.openSession();
session = (Session) persistenceProvider.proxyDelegate(session);
HibernateManagedSessionProxyHandler handler = new HibernateManagedSessionProxyHandler(session, manager, bean.getQualifiers(), persistenceProvider, manager);
Session proxy = (Session) proxyConstructor.newInstance(handler);
try
{