in src/main/java/org/apache/sling/event/dea/impl/ResourceHelper.java [88:98]
public static ValueMap getValueMap(final Resource resource) throws InstantiationException {
final ValueMap vm = ResourceUtil.getValueMap(resource);
// trigger full loading
try {
vm.size();
} catch ( final IllegalArgumentException iae) {
// the JCR implementation might throw an IAE if something goes wrong
throw (InstantiationException)new InstantiationException(iae.getMessage()).initCause(iae);
}
return vm;
}