SLING-5707 - Add fromResource to HapiUtil and deprecate fromNode - contributed by Andrei Dulvac, thanks \!