Can you move this block out of lambdas and return null in case there is no backing document? It's not desirable to throw exceptions here.