Wrapper for NHibernate