instead of using '==', use equals() to test Long value equality
instead of '==', use equals() to compare two strings in cloud-server
$PRODUCT; should be &PRODUCT; to represent entity CloudStack