    # File lib/chef/resource_platform_map.rb, line 35
          def filter(platform, version)
            resource_map = map[:default].clone
            platform_sym = platform
            if platform.kind_of?(String)
              platform.downcase!
              platform.gsub!(/\s/, "_")
              platform_sym = platform.to_sym
            end

            if map.has_key?(platform_sym)
              if map[platform_sym].has_key?(version)
                if map[platform_sym].has_key?(:default)
                  resource_map.merge!(map[platform_sym][:default])
                end
                resource_map.merge!(map[platform_sym][version])
              elsif map[platform_sym].has_key?(:default)
                resource_map.merge!(map[platform_sym][:default])
              end
            end
            resource_map
          end