try {
actionType = request.getGadgetActionType();
gadgetName = request.getGadgetName();
Gadget g = request.getRequestedGadget();
String contentName = request.getContentName();
if(g!=null)
requestHandlerPackageName = g.getHandlerPackageName();
handler = RequestHandlerFactory.getGadgetRequestHandler(gadgetName,gadgetsRootPackageName,requestHandlerPackageName,contentName);
if (actionType.equals(ReqActionTypes.CONFIG))
handler.doConfig(request, gadgletResponse);