Added check for Map in getModel for map support