Added pattern support for java backend search
Merge branch 'pattern_branch'