def to_jnlp(options={})
      jnlp = @jnlp.to_s
      unless options.empty?
        options.each do |k,v|
          jnlp.gsub!(/(<jnlp.*?)(#{k.to_s}=)(['"])(.*?)\3(.*?)>/, "\\1\\2\\3#{v}\\3\\5>")
        end
      end
      jnlp
    end
def to_jnlp(options={})
      jnlp = @jnlp.to_s
      unless options.empty?
        options.each do |k,v|
          jnlp.gsub!(/(<jnlp.*?)(#{k.to_s}=)(['"])(.*?)\3(.*?)>/, "\\1\\2\\3#{v}\\3\\5>")
        end
      end
      jnlp
    end
returns the jnlp as a string