This section looks hardcoded...could you add more detailed documentation here? It also looks like CommonJoinFilter#isFiltered() isn't used.