The mapping is done within showContextMenu() itself. Thus, calling it here would be twice.