use need_version decorator for hasExtension method

Change-Id: I62d6a832c23d1cece6e16491fe44b613693ada76
Merge "use need_version decorator for hasExtension method"