code: public static void main(final String[] args) throws TwiMLException, URISyntaxException {
          // Say
          Say say = new Say.Builder("Hello World!")
              .voice(Say.Voice.MAN)
              .loop(5)
              .build();
  
          VoiceResponse response = new VoiceResponse.Builder()
              .say(say)
              .build();
  
          System.out.println(response.toXml());
  
          // Gather, Redirect
          Gather gather = new Gather.Builder()
              .numDigits(10)
              .say(new Say.Builder("Press 1").build())
              .build();
  
          Redirect redirect = new Redirect.Builder(new URI("https://example.com")).build();
  
          response = new VoiceResponse.Builder()
              .gather(gather)
              .redirect(redirect)
              .build();
  
          System.out.println(response.toXml());
  
          // Conference
          Conference conference = new Conference.Builder("my room")
              .beep(Conference.Beep.TRUE)
              .build();
  
          Dial dial = new Dial.Builder()
              .callerId("+1 (555) 555-5555")
              .action(new URI("https:///example.com"))
              .hangupOnStar(true)
              .conference(conference)
              .build();
  
          response = new VoiceResponse.Builder()
              .dial(dial)
              .build();
  
          System.out.println(response.toXml());
      }
docs: TwiML example usage.
  
  @param args command line args
  @throws TwiMLException if cannot generate TwiML