Fixed issue in session  factory beans