The next version of will add the Context.lookupObject() method, which is preferred over the global lookupObject() function.