def create(self, name):
timer = metrics.Timer()<EOL>timer.start()<EOL>type = self.resolver.find(name)<EOL>if type is None:<EOL><INDENT>raise TypeNotFound(name)<EOL><DEDENT>if type.enum():<EOL><INDENT>result = InstFactory.object(name)<EOL>for e, a in type.children():<EOL><INDENT>setattr(result, e.name, e.name)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>result = self.builder.build(type)<EOL><DEDENT>except Exception as e:<EOL><INDENT>log.error("<STR_LIT>", name, exc_info=True)<EOL>raise BuildError(name, e)<EOL><DEDENT><DEDENT>timer.stop()<EOL>metrics.log.debug('<STR_LIT>', name, timer)<EOL>return result<EOL>
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}