To prevent breakage for existing consumers.

Added a deprecated method getUserId() back to prevent breakage for existing consumers