Here you can find the source of format(final String message, final Object... args)
public static String format(final String message, final Object... args)
//package com.java2s; /*//from w w w .ja va 2s . co m * Copyright 2000-2013 Enonic AS * http://www.enonic.com/license */ import java.text.MessageFormat; public class Main { public static String format(final String message, final Object... args) { if (args == null || args.length == 0) { return message; } else { return MessageFormat.format(message, args); } } }