final StringBuffer sb = new StringBuffer().append( " is on " ).append( date )
.append( ". It starts at " ).append( startTime ).append( " in " ).append( room )
.append( " room and ends at " ).append( endTime ).append( "." );
// Note that TimeAndLocation interface contains no binding definitions.
// It is not necessary because the interface is created in our custom handler.
return new TimeAndLocation()
{
public String getValue()
{
return sb.toString();
}