get sequences and mail templates by ref on their xml id instead searching on the name field of the corresponding object