Add support for calling findOr404 for repo classes