public void merge(final WroModel importedModel) {
    Validate.notNull(importedModel, "imported model cannot be null!");
    LOG.debug("merging importedModel: {}", importedModel);
    for (final String groupName : new WroModelInspector(importedModel).getGroupNames()) {
      if (new WroModelInspector(this).getGroupNames().contains(groupName)) {
        throw new WroRuntimeException("Duplicate group name detected: " + groupName);
      }
      final Group importedGroup = new WroModelInspector(importedModel).getGroupByName(groupName);
      addGroup(importedGroup);
    }
  }
public void merge(final WroModel importedModel) {
    Validate.notNull(importedModel, "imported model cannot be null!");
    LOG.debug("merging importedModel: {}", importedModel);
    for (final String groupName : new WroModelInspector(importedModel).getGroupNames()) {
      if (new WroModelInspector(this).getGroupNames().contains(groupName)) {
        throw new WroRuntimeException("Duplicate group name detected: " + groupName);
      }
      final Group importedGroup = new WroModelInspector(importedModel).getGroupByName(groupName);
      addGroup(importedGroup);
    }
  }
public void merge ( final WroModel importedModel ) { Validate . notNull ( importedModel , "imported model cannot be null!" ) ; LOG . debug ( "merging importedModel: {}" , importedModel ) ; for ( final String groupName : new WroModelInspector ( importedModel ) . getGroupNames ( ) ) { if ( new WroModelInspector ( this ) . getGroupNames ( ) . contains ( groupName ) ) { throw new WroRuntimeException ( "Duplicate group name detected: " + groupName ) ; } final Group importedGroup = new WroModelInspector ( importedModel ) . getGroupByName ( groupName ) ; addGroup ( importedGroup ) ; } }
Merge this model with another model. This is useful for supporting model imports.

@param importedModel model to import.
Merge this model with another model . This is useful for supporting model imports .