} else if (clazz == String.class) {
return new StringFormat();
} else if (clazz == Date.class) {
return new DatePatternFormat(pattern, timezone, getLocale(locale));
} else if (clazz == char.class || clazz == Character.class) {
return new CharacterFormat();
} else if (clazz == boolean.class || clazz == Boolean.class) {
return new BooleanFormat();
} else if (clazz.isEnum()) {
@SuppressWarnings({"rawtypes", "unchecked"})
Format<?> fmt = new EnumFormat(clazz);