Working with jtree and pattern search