if (theme instanceof BootstrapThemeTheme) {
bootstrapSettings.setThemeProvider(new SingleThemeProvider(theme));
} else if (theme instanceof BootswatchTheme) {
bootstrapSettings.setThemeProvider(new BootswatchThemeProvider((BootswatchTheme) theme));
} else if (theme instanceof VegibitTheme) {
bootstrapSettings.setThemeProvider(new VegibitThemeProvider((VegibitTheme) theme));
}
}