transaction and session fix. Using joda time and plugin for dates