Creating Custom E-mails Using Velocity Templates

Hi

I have a rule that triggers when a certain event is found and sends information about the found event to the mail.

I used the ESM Administrator's Guide, section Appendix C: Creating Custom E-mails Using
Velocity Templates

In <ARCSIGHT_HOME>/Manager/config/notifications, I created a test velocity template Test.vm, then modified the Email.vm file as follows according to the instructions:
#if( $introspector.getDisplayValue($event, "deviceProduct") == "CEF Parser" )
#parse("Test.vm")
#else
#parse("Informative.vm")
#end

But this option always causes this Informative.vm template

If you leave the file settings like this #parse("Test.vm"), it works, but the email has no information about the event that triggered the email rule.

What is the error and how to fix it?

Thanks in advance.

Bohdan