Fixed multiple bag problem, must serialize objects before closing entity manager
shoreline whitespace issue resolved