Added synchronized declaration to tghe newRequestId method