public void exitAction(IvrContext ivrContext) {
   IVRRequest request = ivrContext.getIvrRequest();
   SaveLanguage(request.getNumber(), request.getUserInput());
 }
 public Event nextEvent(IvrContext ivrContext) {
   IVRRequest request = ivrContext.getIvrRequest();
   if (request.getUserInput().equals("english")) return IvrEvents.PLAY_ENGLISH_MESSAGE;
   else if (request.getUserInput().equals("hindi")) return IvrEvents.PLAY_HINDI_MESSAGE;
   return IvrEvents.UNKNOWN;
 }
 public void action(IvrContext ivrContext) {
   ivrContext.setIvrResponse(new IvrResponse("Please select your language preference"));
 }