Problems with System Tray Icon

Hello buddies, well i’m need to remove the options “Log Out” and “Exit” from the System Tray Icon, but i just can’t do it, when i alter the class and create a jar of it the result is like the Photo.

Somebody can help me? Thanks for the help and sorry for the english ^^

Is it possible to remove Log out item menu from tray? I don’t need it and I don’t know where to add or remove some code. I have try in some places where it appears but there isn’t any effects ;/

Can someone give me some instruction where search for it?