private WroConfiguration createConfiguration ( ) { // Extract config from servletContext (if already configured) // TODO use a named helper final WroConfiguration configAttribute = ServletContextAttributeHelper . create ( filterConfig ) . getWroConfiguration ( ) ; if ( configAttribute != null ) { setConfiguration ( configAttribute ) ; } return getWroConfigurationFactory ( ) . create ( ) ; }
Creates configuration by looking up in servletContext attributes . If none is found a new one will be created using the configuration factory .