synchronized key word added to avoid race conditions.
Authored by: rashid_waraich 2014-06-25
Parent: [r29445]
Child: [r29447]