question: 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 ) ) { resources . addAll ( getResourcesForGroup ( uri ) ) ; } if ( getResourceType ( resourceElement ) != null ) { final Resource resource = createResource ( resourceElement ) ; LOG . debug ( "\t\tadding resource: {}" , resource ) ; resources . add ( resource ) ; } }
target:  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.