/wro4j-core/src/main/java/ro/isdc/wro/model/WroModelInspector.java
for ( final Group group : model.getGroups ( ) ) { map.put ( group.getName ( ) , group ) ; }
import ro.isdc.wro.model.group.Group; import ro.isdc.wro.model.resource.Resource; public class WroModelInspector { private final Map<String, Group> map = new HashMap<String, Group>(); public WroModelInspector(final WroModel model) { Validate.notNull(model); <extra_id_0> } public Group getGroupByName(final String name) { return map.get(name); } public Collection<String> getGroupNamesContainingResource(final String resourceUri) { Validate.notNull(resourceUri);