Fix for Issue#310 - Closed entity manager after data retrieval in order
to avoid LazyInitializationException