if ("defId".equals(type)) {
defVerId = formListDAO.findFormProductionVersionId(defId);
Collection<Form> forms = formListDAO.findAllFormVersions(defId);
FormList formList = new FormList();
formList.setDefVerId(defVerId);
formList.setForms(forms);
XStream xstream = new XStream(new JsonHierarchicalStreamDriver() {
public HierarchicalStreamWriter createWriter(Writer writer) {
return new JsonWriter(writer, JsonWriter.DROP_ROOT_MODE);
}