Listing 3. WelcomePresentation.run()

public void run(HttpPresentationComms comms)
  throws HttpPresentationException, IOException {
  WelcomeHTML welcome;
  String now;
  welcome = (WelcomeHTML)comms.xmlcFactory.create (WelcomeHTML.class);
  now = DateFormat.getTimeInstance(DateFormat.MEDIUM) .format(new Date());
  welcome.setTextTime(now);
  comms.response.writeDOM(welcome);
}