model.addAttribute("appVersion", appVersion);
AppDefinition appDef = appService.getAppDefinition(appId, appVersion);
String tempJson = json;
if (tempJson.contains(SecurityUtil.ENVELOPE) || tempJson.contains(PropertyUtil.PASSWORD_PROTECTED_VALUE)) {
FormDefinition formDef = formDefinitionDao.loadById(formId, appDef);
if (formDef != null) {
tempJson = PropertyUtil.propertiesJsonStoreProcessing(formDef.getJson(), tempJson);
}
}
String elementHtml = formService.previewElement(tempJson, false);
model.addAttribute("elementTemplate", elementHtml);