protected Group createGroup(final Element element){
  final String name=element.getAttribute(ATTR_GROUP_NAME);
  final Group group=new Group(name);
  final List<Resource> resources=new ArrayList<Resource>();
  final NodeList resourceNodeList=element.getChildNodes();
  for (int i=0; i < resourceNodeList.getLength(); i++) {
    final Node node=resourceNodeList.item(i);
    if (node instanceof Element) {
      final Element resourceElement=(Element)node;
      parseResource(resourceElement,resources);
    }
  }
  group.setResources(resources);
  return group;
}

protected Group createGroup ( final Element element ) { final String name = element . getAttribute ( ATTR_GROUP_NAME ) ; final Group group = new Group ( name ) ; final List < Resource > resources = new ArrayList < Resource > ( ) ; final NodeList resourceNodeList = element . getChildNodes ( ) ; for ( int i = 0 ; i < resourceNodeList . getLength ( ) ; i ++ ) { final Node node = resourceNodeList . item ( i ) ; if ( node instanceof Element ) { final Element resourceElement = ( Element ) node ; parseResource ( resourceElement , resources ) ; } } group . setResources ( resources ) ; return group ; }
creates a group and all its associated resources .
