wro4j-extensions/src/main/java/ro/isdc/wro/extensions/model/factory/SmartWroModelFactory.java
public static SmartWroModelFactory createFromStandaloneContext(final StandaloneContext context) {
    notNull(context);
    final boolean autoDetectWroFile = WroUtil.normalize(context.getWroFile().getPath()).contains(
        WroUtil.normalize(DEFAULT_WRO_FILE));
    if (!autoDetectWroFile) {
      LOG.debug("autoDetect is " + autoDetectWroFile + " because wroFile: " + context.getWroFile()
          + " is not the same as the default one: " + DEFAULT_WRO_FILE);
    }
    return new SmartWroModelFactory().setWroFile(context.getWroFile()).setAutoDetectWroFile(autoDetectWroFile);
  }
public static SmartWroModelFactory createFromStandaloneContext(final StandaloneContext context) {
    notNull(context);
    final boolean autoDetectWroFile = WroUtil.normalize(context.getWroFile().getPath()).contains(
        WroUtil.normalize(DEFAULT_WRO_FILE));
    if (!autoDetectWroFile) {
      LOG.debug("autoDetect is " + autoDetectWroFile + " because wroFile: " + context.getWroFile()
          + " is not the same as the default one: " + DEFAULT_WRO_FILE);
    }
    return new SmartWroModelFactory().setWroFile(context.getWroFile()).setAutoDetectWroFile(autoDetectWroFile);
  }
Use this factory method when you want to use the {@link SmartWroModelFactory} in standalone (maven plugin) context.
The autoDetect flag is set to true if the wroFile path is the same as the default wro file name.