try {
defVerId = Integer.parseInt(arg0.getParameter("defVerId"));
} catch (NumberFormatException e) {
}
DataSource dataSource = DefaultConnectionFactory.create().getDataSource();
ProcessDefinitionListDAO formListDAO = new ProcessDefinitionListDAO(dataSource);
String result = null;
if ("defId".equals(type)) {
defVerId = formListDAO.findFormProductionVersionId(defId);
Collection<Form> forms = formListDAO.findAllFormVersions(defId);
FormList formList = new FormList();
formList.setDefVerId(defVerId);
formList.setForms(forms);