public MobileMidwifeForm buildMobileMidwifeForm() { MobileMidwifeForm mobileMidwifeForm = new MobileMidwifeForm(); mobileMidwifeForm.setStaffId(staffId); mobileMidwifeForm.setFacilityId(facilityId); mobileMidwifeForm.setMotechId(patientId); mobileMidwifeForm.setAction(registerAction); mobileMidwifeForm.setConsent(consent); fillAbstractFormFields(mobileMidwifeForm); return mobileMidwifeForm; }