in src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java [101:111]
private static void failIfCannotStore(final @NotNull Object value, final @NotNull Node node) throws RepositoryException {
if (value instanceof InputStream) {
// InputStream is storable and calling createValue for nothing
// eats its contents
return;
}
final Value val = createValue(value, node);
if (val == null) {
throw new IllegalArgumentException("Value can't be stored in the repository: " + value);
}
}