module JmeterPerf class ExtendedDSL < DSL def jms_pointtopoint(params, &block) JmeterPerf::JmsPointtopoint.new(params).tap do |node| params[:jndi_properties]&.each do |property_name, property_value| node.doc.xpath("//collectionProp").first.add_child( Nokogiri::XML(JmeterPerf::Helpers::String.strip_heredoc( <<-EOS #{property_name} #{property_value} = EOS )).children ) end attach_node(node, &block) end end end end