NXBT-847: implement rules for rich:tree tag migration