'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}'

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 = InstFactory.object(name)
        for (e, a) in type.children():
            setattr(result, e.name, e.name)
    else:
        try:
            result = self.builder.build(type)
        except Exception as 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
