* @return Formatted string.
* @see <a href="http://stackoverflow.com/questions/3126232/string-formatter-in-gwt">Stack Overflow</a>
*/
public static String format(final String format, final Object... args) {
RegExp regex = RegExp.compile("%[a-z]");
SplitResult split = regex.split(format);
StringBuffer msg = new StringBuffer();
for (int pos = 0; pos < split.length() - 1; pos += 1) {
msg.append(split.get(pos));
msg.append(args[pos].toString());