in src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java [86:99]
public JcrPropertyMapCacheEntry(final @NotNull Object value, final @NotNull Node node) throws RepositoryException {
this.property = null;
this.propertyValue = value;
this.isArray = value.getClass().isArray();
// check if values can be stored in JCR
if (isArray) {
final Object[] values = convertToObjectArray(value);
for (Object o : values) {
failIfCannotStore(o, node);
}
} else {
failIfCannotStore(value, node);
}
}