@Override
protected void process(String gadgetPath, GadgetDefinition def) throws Exception {
def.setLocal(true);
//
LocalGadgetData data = (LocalGadgetData) def.getData();
//
String fileName = getName(gadgetPath);
data.setFileName(fileName);
// Import resource
folder = data.getResources();
String folderPath = getParent(gadgetPath);
visitChildren(gadgetPath, folderPath);
folder = null;
}