META-309: SessionFactory must not be stored in a static field