private static String createMessage(String format, Object value) { if (Decision.isSimpleValue(value)) return "the value [" + Caster.toString(value, null) + "] is not in [" + format + "] format"; return "cannot convert object from type [" + Caster.toTypeName(value) + "] to a [" + format + "] format"; }