wro4j-extensions/src/main/java/ro/isdc/wro/extensions/http/SpringWroFilter.java
@Override
  protected void doInit(final FilterConfig filterConfig)
      throws ServletException {
    String targetBeanName = filterConfig
        .getInitParameter(PARAM_TARGET_BEAN_NAME);
    // apply default targetBeanName
    targetBeanName = StringUtils.isEmpty(targetBeanName) ? DEFAULT_TARGET_BEAN_NAME
        : targetBeanName;
    final WebApplicationContext ctx = WebApplicationContextUtils
        .getWebApplicationContext(filterConfig.getServletContext());
    factory = (WroManagerFactory) ctx.getBean(targetBeanName,
        WroManagerFactory.class);
    if (factory == null) {
      throw new WroRuntimeException("Could not locate: "
          + WroManagerFactory.class.getName()
          + " instance in applicationContext with bean name: " + targetBeanName);
    }
  }
@Override
  protected void doInit(final FilterConfig filterConfig)
      throws ServletException {
    String targetBeanName = filterConfig
        .getInitParameter(PARAM_TARGET_BEAN_NAME);
    // apply default targetBeanName
    targetBeanName = StringUtils.isEmpty(targetBeanName) ? DEFAULT_TARGET_BEAN_NAME
        : targetBeanName;
    final WebApplicationContext ctx = WebApplicationContextUtils
        .getWebApplicationContext(filterConfig.getServletContext());
    factory = (WroManagerFactory) ctx.getBean(targetBeanName,
        WroManagerFactory.class);
    if (factory == null) {
      throw new WroRuntimeException("Could not locate: "
          + WroManagerFactory.class.getName()
          + " instance in applicationContext with bean name: " + targetBeanName);
    }
  }
{@inheritDoc}