what are the exceptions that can happen here ?

Also could we add eclipse log tracing to this method since it seem to be searching through various stages which would be interesting to debug/trace in case of users and us not understanding why the auto-lookup is not working. (this tracing could be added in a separate PR though)