class FormatFunction {

	@FunctionMeta(description = "Format object using message pattern", example = "${w:format(payload.dateFrom,'yyyy-MM-dd')}")
	public static String format(Object obj, String pattern) {
		return Formats.forObject().format(obj, pattern);
	}

}