class IncidentFormServiceImpl implements IncidentFormService {

    public void saveOrUpdate(IncidentForm incidentForm) {
        IncidentForm existingIncidentForm = incidentFormDao.getIncidentForm(incidentForm.
                getModuleId(),PrimeroAppConfiguration.getApiBaseUrl());
        if (existingIncidentForm == null) {
            incidentForm.setServerUrl(PrimeroAppConfiguration.getApiBaseUrl());
            incidentForm.save();
        } else {
            existingIncidentForm.setForm(incidentForm.getForm());
            existingIncidentForm.update();
        }
    }

    public  IncidentFormServiceImpl(IncidentFormDao incidentFormDao);

}