switched impl to use hibernate4