java document filtering refactering

Signed-off-by: KouichiYamada <k-yamada@tg-inet.co.jp>