borrowed from java_buildpack web_xml_modifier.rb