/wro4j-core/src/main/java/ro/isdc/wro/model/WroModelInspector.java
Validate.notNull ( model ) ;
import org.apache.commons.lang3.Validate; 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) { <extra_id_0> for (final Group group : model.getGroups()) { map.put(group.getName(), group); } } public Group getGroupByName(final String name) { return map.get(name);