throw new CarbonException(msg, e);
}
//check for correct instance type
if (uiInitializerObj != null) {
if (uiInitializerObj instanceof CarbonUIFragmentInitializer) {
CarbonUIFragmentInitializer callbackHandler = (CarbonUIFragmentInitializer) uiInitializerObj;
if (log.isDebugEnabled()) {
log.debug("Invoking CarbonUIFragmentInitilizer.process() - "
+ uiInitializerObj.getClass().getName());
}
callbackHandler.process();
} else {
String msg = "UI fragment initilizer class should be of type " +
"org.wso2.carbon.ui.ext.CarbonUIFragmentInitilizer";
log.error(msg);
throw new CarbonException(msg);