Add get_map, set_map methods to BasePortMapper.