Changed DocumentApiController to EntityLockApiController for Locking mechanism..