filter some of java tokens; save child index in relationship