wro4j-core/src/main/java/ro/isdc/wro/model/factory/ModelTransformerFactory.java
@Override
  public WroModel create() {
    WroModel model = super.create();
    LOG.debug("using {} transformers", modelTransformers);
    for (final Transformer<WroModel> transformer : modelTransformers) {
      injector.inject(transformer);
      LOG.debug("using transformer: {}", transformer.getClass());
      try {
        model = transformer.transform(model);
      } catch (final Exception e) {
        throw new WroRuntimeException("Exception during model transformation", e);
      }
    }
    return model;
  }
@Override
  public WroModel create() {
    WroModel model = super.create();
    LOG.debug("using {} transformers", modelTransformers);
    for (final Transformer<WroModel> transformer : modelTransformers) {
      injector.inject(transformer);
      LOG.debug("using transformer: {}", transformer.getClass());
      try {
        model = transformer.transform(model);
      } catch (final Exception e) {
        throw new WroRuntimeException("Exception during model transformation", e);
      }
    }
    return model;
  }
@ Override public WroModel create ( ) { WroModel model = super . create ( ) ; LOG . debug ( "using {} transformers" , modelTransformers ) ; for ( final Transformer < WroModel > transformer : modelTransformers ) { injector . inject ( transformer ) ; LOG . debug ( "using transformer: {}" , transformer . getClass ( ) ) ; try { model = transformer . transform ( model ) ; } catch ( final Exception e ) { throw new WroRuntimeException ( "Exception during model transformation" , e ) ; } } return model ; }
{@inheritDoc}
{