throw new InstantiationException("could not find a conversion from " + source.getTypeName() + " to " + target.getTypeName());
}
@NotNull
private Optional<TypeConversion> findConversionFromDbValue(@NotNull Type source, @NotNull Type target) {
if (isAssignable(target, source))
<BUG>return Optional.of(TypeConversion.identity(target));
Optional<TypeConversion> directConversion = typeConversionRegistry.findCoercionFromDbValue(source, target);</BUG>
if (directConversion.isPresent())
return directConversion;
Optional<TypeConversion> arrayConversion = findArrayConversion(source, target);

throw new InstantiationException("could not find a conversion from " + source.getTypeName() + " to " + target.getTypeName());
}
@NotNull
private Optional<TypeConversion> findConversionFromDbValue(@NotNull Type source, @NotNull Type target) {
if (isAssignable(target, source))
return Optional.of(TypeConversion.identity());
Optional<TypeConversion> directConversion = typeConversionRegistry.findCoercionFromDbValue(source, target);
if (directConversion.isPresent())
return directConversion;
Optional<TypeConversion> arrayConversion = findArrayConversion(source, target);
