return new CustomMultiPropertyEncoder(propertyName, custom, index);
}
else
{
CustomEncoder<?, ?> custom = ObjectUtils.newInstance(encoderClass);
return new CustomSinglePropertyEncoder(propertyName, custom, index);
}
}
else if (Enum.class.isAssignableFrom(clazz))
{
return new EnumEncoder(propertyName, clazz, index);