Calling the formatter facade

All toolkit applications use the formatter facade to access CHA Formatter service. Below is an example of calling the formatter facade:
com.ibm.btt.formatter.client.FormatElement aFmt = new com.ibm.btt.formatter.client.FormatElement();
aFmt.setName("aFormat");
String formattedStr = aFmt.format(getContext("aContext"));