I believe it should work, do you have the right imports? List import for example? By the way, I believe that using eval in that rule is unnecessary.