def METHOD_NAME(self, content):
    #
    # Resolve to the schema type; build an object and setup metadata.
    #
    if content.type is None:
        found = self.resolver.find(content.node)
        if found is None:
            log.error(self.resolver.schema)
            raise TypeNotFound(content.node.qname())
        content.type = found
    else:
        known = self.resolver.known(content.node)
        frame = Frame(content.type, resolved=known)
        self.resolver.push(frame)
    real = self.resolver.top().resolved
    content.real = real
    cls_name = real.name
    if cls_name is None:
        cls_name = content.node.name
    content.data = Factory.object(cls_name)
    md = content.data.__metadata__
    md.sxtype = real