cType = DashboardConstants.GADGET_MEDIA_TYPE;
}
}
if ("add".equals(formMode)) {
Boolean created = client.addGadgetEntryToRepo(gName, gUrl, gDesc, gadgetThumb, cType, gadgetFile);
if(!created){
String msg = "Can not add Gadget " + gName + ". Please refer error log for more details.";
log.info(msg);
CarbonUIMessage.sendCarbonUIMessage(
msg, CarbonUIMessage.ERROR, request, response,