class MessageUtil {

    public static String formatMessage(String message, Object...params) {
        if (message == null || params == null || params.length == 0) {
            return message;
        }

        return MessageFormat.format(message, params);
    }

}