Code example for ServletWebRequest

0
public class NullBroadleafThemeResolver implements BroadleafThemeResolver { 
    private final Theme theme = new ThemeDTO(); 
 
    @Override 
    public Theme resolveTheme(HttpServletRequest request, Site site) { 
        return resolveTheme(new ServletWebRequest(request)); 
    } 
     
    @Override 
    public Theme resolveTheme(WebRequest request) { 
        return theme; 
    } 
}