- protected void deploy(Bundle bundle) {
- CmsTheme cmsTheme = new CmsTheme(bundleContext, "org.argeo.theme.argeo2");
+ protected void deploy(Bundle bundle, Map<String, String> properties) {
+ CmsTheme cmsTheme;
+ if (properties.containsKey(CmsTheme.CMS_THEME_BUNDLE_PROPERTY)) {
+ String cmsThemeBundle = properties.get(CmsTheme.CMS_THEME_BUNDLE_PROPERTY);
+ cmsTheme = new CmsTheme(bundleContext, cmsThemeBundle);
+ } else {
+ cmsTheme = new CmsTheme(bundleContext, CmsTheme.DEFAULT_CMS_THEME_BUNDLE);
+ }