wro4j-core/src/main/java/ro/isdc/wro/model/factory/XmlModelFactory.java
private void parseResource(final Element resourceElement, final Collection<Resource> resources) {
    final String tagName = resourceElement.getTagName();
    final String uri = resourceElement.getTextContent();
    if (TAG_GROUP_REF.equals(tagName)) {
      // uri in this case is the group name
      resources.addAll(getResourcesForGroup(uri));
    }
    if (getResourceType(resourceElement) != null) {
      final Resource resource = createResource(resourceElement);
      LOG.debug("\t\tadding resource: {}", resource);
      resources.add(resource);
    }
  }
private void parseResource(final Element resourceElement, final Collection<Resource> resources) {
    final String tagName = resourceElement.getTagName();
    final String uri = resourceElement.getTextContent();
    if (TAG_GROUP_REF.equals(tagName)) {
      // uri in this case is the group name
      resources.addAll(getResourcesForGroup(uri));
    }
    if (getResourceType(resourceElement) != null) {
      final Resource resource = createResource(resourceElement);
      LOG.debug("\t\tadding resource: {}", resource);
      resources.add(resource);
    }
  }
private void parseResource ( final Element resourceElement , final Collection < Resource > resources ) { final String tagName = resourceElement . getTagName ( ) ; final String uri = resourceElement . getTextContent ( ) ; if ( TAG_GROUP_REF . equals ( tagName ) ) { // uri in this case is the group name
 resources . addAll ( getResourcesForGroup ( uri ) ) ; } if ( getResourceType ( resourceElement ) != null ) { final Resource resource = createResource ( resourceElement ) ; LOG . debug ( "\t\tadding resource: {}" , resource ) ; resources . add ( resource ) ; } }
Creates a resource from a given resourceElement. It can be css, js. If resource tag name is group-ref, the method
will start a recursive computation.

@param resources
list of parsed resources where the parsed resource is added.
Creates a resource from a given resourceElement . It can be css js . If resource tag name is group - ref the method will start a recursive computation .