in src/main/java/org/apache/sling/caconfig/spi/metadata/PropertyMetadata.java [58:65]
public PropertyMetadata(@NotNull String name, @NotNull Class<T> type) {
super(name);
Class<T> convertedType = (Class<T>) typeToPrimitive(type);
if (!isSupportedType(convertedType)) {
throw new IllegalArgumentException("Invalid type for property '" + name + "': " + type);
}
this.type = convertedType;
}