'Find the path root.
@param parts: A list of path parts.
@type parts: [str,..]
@return: The root.
@rtype: L{xsd.sxbase.SchemaObject}'

def root(self, parts):

    result = None
    name = parts[0]
    log.debug('searching    schema    for    (%s)', name)
    qref = self.qualify(parts[0])
    query = BlindQuery(qref)
    result = query.execute(self.schema)
    if (result is None):
        log.error('(%s)    not-found', name)
        raise PathResolver.BadPath(name)
    else:
        log.debug('found    (%s)    as    (%s)', name, Repr(result))
    return result
