class CaseFormServiceImpl implements CaseFormService {

    public void saveOrUpdate(CaseForm caseForm) {
        CaseForm existingCaseForm = caseFormDao.getCaseForm(caseForm.getModuleId(), PrimeroAppConfiguration
                .getApiBaseUrl());
        if (existingCaseForm == null) {
            caseForm.setServerUrl(PrimeroAppConfiguration.getApiBaseUrl());
            caseForm.save();
        } else {
            existingCaseForm.setForm(caseForm.getForm());
            existingCaseForm.update();
        }
    }

    public  CaseFormServiceImpl(CaseFormDao caseFormDao);

}