I try some code from hibernate 4.0 interceptors, which gives this code for use session-level interceptors:
Session session = sf.openSession( new AuditInterceptor
It's implemented using Builder pattern now:
Session session = sf.withOptions() .interceptor(new AuditInterceptor()) .openSession();