wro4j-core/src/main/java/ro/isdc/wro/model/WroModel.java
private void identifyDuplicateGroupNames(final Collection<Group> groups) {
    LOG.debug("identifyDuplicateGroupNames");
    final List<String> groupNames = new ArrayList<String>();
    for (final Group group : groups) {
      if (groupNames.contains(group.getName())) {
        throw new WroRuntimeException("Duplicate group name detected: " + group.getName());
      }
      groupNames.add(group.getName());
    }
  }
private void identifyDuplicateGroupNames(final Collection<Group> groups) {
    LOG.debug("identifyDuplicateGroupNames");
    final List<String> groupNames = new ArrayList<String>();
    for (final Group group : groups) {
      if (groupNames.contains(group.getName())) {
        throw new WroRuntimeException("Duplicate group name detected: " + group.getName());
      }
      groupNames.add(group.getName());
    }
  }
private void identifyDuplicateGroupNames ( final Collection < Group > groups ) { LOG . debug ( "identifyDuplicateGroupNames" ) ; final List < String > groupNames = new ArrayList < String > ( ) ; for ( final Group group : groups ) { if ( groupNames . contains ( group . getName ( ) ) ) { throw new WroRuntimeException ( "Duplicate group name detected: " + group . getName ( ) ) ; } groupNames . add ( group . getName ( ) ) ; } }
Identify duplicate group names.

@param groups a collection of group to validate.
Identify duplicate group names .