Added java template DocumentFilter.