wro4j-core/src/main/java/ro/isdc/wro/model/factory/XmlModelFactory.java
protected Resource createResource(final Element resourceElement) {
    final String uri = resourceElement.getTextContent();
    final String minimizeAsString = resourceElement.getAttribute(ATTR_MINIMIZE);
    final boolean minimize = StringUtils.isEmpty(minimizeAsString) || Boolean.valueOf(minimizeAsString);
    final Resource resource = Resource.create(uri, getResourceType(resourceElement));
    resource.setMinimize(minimize);
    return resource;
  }
protected Resource createResource(final Element resourceElement) {
    final String uri = resourceElement.getTextContent();
    final String minimizeAsString = resourceElement.getAttribute(ATTR_MINIMIZE);
    final boolean minimize = StringUtils.isEmpty(minimizeAsString) || Boolean.valueOf(minimizeAsString);
    final Resource resource = Resource.create(uri, getResourceType(resourceElement));
    resource.setMinimize(minimize);
    return resource;
  }
Creates a resource from a given resourceElement. The element is guaranteed to be of a simple non-recursive type
(i.e. css or js).

@param resourceElement
Resource element to parse.