} else if (identifier.equals("2")) {
SmsMessageHandler messageHandler = new SmsMessageHandler();
String recipient = emergencyDao.getEmergencyPhone();
messageHandler.setRecipient(recipient);
Emergency emergency = new Emergency();
emergency.setArrivedOn(new DateTime().toDate());
String workerName = mother.getHealthWorker().getFullName();
String messageContent = "Emergency\n" + mother.getMotherId() + "\n" + mother.getFullName()
+ "\n" + workerName + "\n" + mother.getGott();
emergency.setContent(messageContent);
messageHandler.setContent(messageContent);
messageHandler.setStatusReportEnabled(false);
emergency.setMother(mother);
emergencyDao.saveEmergency(emergency);
try {
messageHandler.sendMessage();