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 ) .
