merged lookups and constrant in java backend rule
remove dead code
Merge pull request #1197 from andreistefanescu/master

merged lookups and constrant in java backend rule