Fixed conversion by handling missing case in LockConflict.
Changed LockManager's hashtables to non static since they are part of the object LockManager.
Added a LockManager created by the Middleware to be used for the transactions.