def find(self, name, resolved=True):
log.debug('<STR_LIT>', name)<EOL>qref = qualify(name, self.schema.root, self.schema.tns)<EOL>query = BlindQuery(qref)<EOL>result = query.execute(self.schema)<EOL>if result is None:<EOL><INDENT>log.error('<STR_LIT>', name)<EOL>return None<EOL><DEDENT>log.debug('<STR_LIT>', name, Repr(result))<EOL>if resolved:<EOL><INDENT>result = result.resolve()<EOL><DEDENT>return result<EOL>
Get the definition object for the schema object by name.
@param name: The name of a schema object.
@type name: basestring
@param resolved: A flag indicating that the fully resolved type
    should be returned.
@type resolved: boolean
@return: The found schema I{type}
@rtype: L{xsd.sxbase.SchemaObject}