# File lib/ant_task.rb, line 95
    def apply_to_wrapper(wrapper, key, value)
      
      raise ArgumentError, "ArgumentError: You cannot use an Array as an argument. Use the :join method instead; i.e ['file1', 'file2'].join(File::PATH_SEPARATOR)." if value.is_a?(Array)
      
      begin
        if(key == 'pcdata')
          wrapper.addText(value.to_s)
        else
          yield key, value.to_s
        end
      rescue StandardError
        raise ArgumentError, "ArgumentError: Unable to set :#{key} attribute with value => '#{value}'"
      end
      
    end