code: def create(self, name):
          
          timer = metrics.Timer()
          timer.start()
          type = self.resolver.find(name)
          if type is None:
              raise TypeNotFound(name)
          if type.enum():
              result = sudsobject.Factory.object(name)
              for e, a in type.children():
                  setattr(result, e.name, e.name)
          else:
              try:
                  result = self.builder.build(type)
              except Exception, e:
                  log.error("create '%s' failed", name, exc_info=True)
                  raise BuildError(name, e)
          timer.stop()
          metrics.log.debug("%s created: %s", name, timer)
          return result
docs: Create a WSDL type by name.
  
          @param name: The name of a type defined in the WSDL.
          @type name: str
          @return: The requested object.
          @rtype: L{Object}