EventType test = (EventType) ht.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { Query q = session.createQuery( "from EventType where value = 'Test'"); return q.uniqueResult(); } }); CurrentDetails.newEvent(test);  return arg0.proceed();
return arg0.proceed();
    public Object invoke(MethodInvocation arg0) throws Throwable    {            Experimenter o =                 (Experimenter) ht.load(Experimenter.class,0);            ExperimenterGroup g =                 (ExperimenterGroup) ht.load(ExperimenterGroup.class,0);            CurrentDetails.setOwner(o);            CurrentDetails.setGroup(g);                        EventType test = (EventType) ht.execute(new HibernateCallback(){                public Object doInHibernate(Session session) throws HibernateException, SQLException                {                    Query q = session.createQuery(                            "from EventType where value = 'Test'");                    return q.uniqueResult();                }            });            CurrentDetails.newEvent(test);                        return arg0.proceed();        }