Optimize the way to get Map
method through reflection.
#20829
Merged
Map
method through reflection.
#20829