String name = collection.getString("web-resource-name", false, true);
SecurityConstraint sc = (SecurityConstraint) scBase.clone();
sc.setName(name);
Iterator iter2 = collection.iterator("http-method");
while (iter2.hasNext())
sc.addMethod(((XmlParser.Node) iter2.next()).toString(false, true));
iter2 = collection.iterator("url-pattern");
while (iter2.hasNext())
{
String url = ((XmlParser.Node) iter2.next()).toString(false, true);
getWebApplicationContext().addSecurityConstraint(url, sc);