reset();
// Parse the input stream into an XMLTree
XMLParser parser = new XMLParser();
XMLTree config = parser.process(stream);
if (!config.getName().equals(Constants.Element.TOMCAT_USERS))
return;
Enumeration e;
// Process the defined users
e = config.getElements(Constants.Element.USER).elements();
while (e.hasMoreElements())
readUser((XMLTree) e.nextElement());
// Process the defined groups
e = config.getElements(Constants.Element.GROUP).elements();
while (e.hasMoreElements())
readGroup((XMLTree) e.nextElement());
// Process the defined roles
e = config.getElements(Constants.Element.ROLE).elements();
while (e.hasMoreElements())
readRole((XMLTree) e.nextElement());
}