else
encoderClass = field.getType().getAnnotation(EncodeWith.class).value();
if (CustomMultiEncoder.class.isAssignableFrom(encoderClass))
{
CustomMultiEncoder<?> custom = ObjectUtils.cast(ObjectUtils.newInstance(encoderClass));
return new CustomMultiPropertyEncoder(propertyName, custom, index);
}
else
{
CustomEncoder<?, ?> custom = ObjectUtils.newInstance(encoderClass);
return new CustomSinglePropertyEncoder(propertyName, custom, index);