class TracingFormServiceImpl implements TracingFormService {

    public void saveOrUpdate(TracingForm tracingForm) {
        TracingForm existingTracingForm = tracingFormDao.getTracingForm(PrimeroAppConfiguration.getApiBaseUrl());
        if (existingTracingForm == null) {
            Log.d(TAG, "save new tracing form");
            tracingForm.setServerUrl(PrimeroAppConfiguration.getApiBaseUrl());
            tracingForm.save();
        } else {
            Log.d(TAG, "update existing tracing form");
            existingTracingForm.setForm(tracingForm.getForm());
            existingTracingForm.update();
        }
    }

    public  TracingFormServiceImpl(TracingFormDao tracingFormDao);

}