def METHOD_NAME(t, model):
    """produces a generic path fitting with the 12 char limit of node names"""
    pathparts = model.split('_')
    node = t.top
    if len(model) > 9:
        if len(pathparts) > 1:
            base, name = pathparts[0]+'_', '_'.join(pathparts[1:])
        elif len(model) > 12:
            base, name = model[:10]+'_', '_'+model[10:]
        else:
            return node, model
        try:
            node = node.getNode(base)
        except TreeNNF:
            node = node.addNode(base, 'STRUCTURE')
    else:
        name = model
    return node, name