def find(model,uri):
    """
    Finds the component in a model given by a (relative) URI
    Example: find(model,"Module/Inner module/"C:component")
    """
    index = uri.find("/")
    if index < 0:
        return model/uri
    else:
        comp_str = uri[:index]
        remaining_path = uri[index+1:]
        return find(model/comp_str, remaining_path)