Revisa regra de gerar rid de xref.
Fixes #747
Merge pull request #756 from robertatakenaka/tk_747

Revisa regra de gerar rid de xref.