protected void activate(ComponentContext context) {
try {
ThemeMgtContext.getRegistryService().getConfigSystemRegistry().getRegistryContext()
.getHandlerManager().addHandler(null,
new MediaTypeMatcher("application/vnd.wso2.gs.theme"), new ThemeUploadHandler());
} catch (Exception e) {
log.error("GS Theme upload Handler registration failed.", e);
}
log.info("Successfully started GS Theme upload module.");
}