NodeList groupNodes = (NodeList) xmlXPath.getGroupListExpression().evaluate(doc,XPathConstants.NODESET);
for ( int i=0 ; i <groupNodes.getLength();i++) {
Node groupNode = groupNodes.item(i);
String groupName = xmlXPath.getGroupNameExpression().evaluate(groupNode);
boolean groupEnabled = Util.convertToBoolean(xmlXPath.getGroupEnabledExpression().evaluate(groupNode),true);
GeoServerUserGroup group= createGroupObject(groupName, groupEnabled);
helper.groupMap.put(groupName, group);
NodeList memberNodes = (NodeList) xmlXPath.getGroupMemberListExpression().evaluate(groupNode,XPathConstants.NODESET);
for ( int j=0 ; j <memberNodes.getLength();j++) {
Node memberNode = memberNodes.item(j);
String memberName = xmlXPath.getGroupMemberNameExpression().evaluate(memberNode);