Hi Alex,Maybe it's a bad practice, but I check for null only if there is a real chance to get null returned.in this case I don't check:Session session = resourceResolver.adaptTo(Session.class);But when I'm not sure if resource can be adapted to my model, I check for null:MyModel myModel = resource.a...