The idea behind ResourceUtil.getValueMap is that it never returns null while resource.adaptTo(ValueMap) can. That's the whole point of this utility method.
I assume people who do resource.adaptTo(ValueMap) never check for null which is bound to fail Carsten 2014-03-14 11:30 GMT+01:00 Amit.. Gupta. <amitg...@adobe.com>: > > FWIW, there are lots of calls to resource.adaptTo(ValueMap) in rendering > code. > +1 > > -- Carsten Ziegeler cziege...@apache.org