Ok, I found the solution:
If you use
thisNode/thisNode2 instead of linkToNode/linkToNode2 itt will work
OR just set :
PortalNode linkToNode = thisNode;
and later:
PortalNode linkToNode2 = thisNode2;
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106948#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...