if (!a_username.equals(username)
|| !a_password.equals(password)) {
continue;
}
principal = new UserPrincipal(username);
// for a matched user, go through each attribute
NodeList attributeList = user.getElementsByTagName("attribute");
for (int y = 0; y < attributeList.getLength(); y++) {
Element attribute = (Element) attributeList.item(y);