if ((defaultTheme != null && forceTheme) || (theme == null && defaultTheme != null)) {
theme = defaultTheme.asMap();
}
if (theme != null) {
final String themeId = String.valueOf(theme.get("id"));
Theme t = ThemeManager.findTheme(themeId);
if (t != null) {
t.init();
String fileName = theme.get("file").toString();
if (!fileName.contains("gxt-all.css")) {
CSS.addStyleSheet(themeId, fileName);
}
bodyEl.addStyleName("x-theme-" + themeId);