Adjusting the Middleware services construction in application context as per changes in Middleware where only one Hibernate session is needed now.

Issue: BMS-167
Reviewer: RebeccaB