The problem with this approach is that the password shows as plain text on the (extended) logs.
What I did was to encrypt the whole "Value=mypassword" text, and save this encryption as a parameter. Then use:
"Name=j_password", lr_decrypt(lr_eval_string("{pass}")), ENDITEM,
Hope this helps someone.