code: def LookupWsdlType(self, ns, name, allowManagedObjectReference=False):
        
        try:
           return GetWsdlType(ns, name)
        except KeyError:
           if allowManagedObjectReference:
              if name.endswith('ManagedObjectReference') and ns == XMLNS_VMODL_BASE:
                 return GetWsdlType(ns, name[:-len('Reference')])
           # WARNING!!! This is a temporary hack to get around server not
           # honoring @service tag (see bug 521744). Once it is fix, I am
           # going to back out this change
           if name.endswith('ManagedObjectReference') and allowManagedObjectReference:
              return GetWsdlType(XMLNS_VMODL_BASE, name[:-len('Reference')])
           return GuessWsdlType(name)
docs: Lookup wsdl type. Handle special case for some vmodl version