Regexp::Trie for Java7