Modified the functions specific to consistency testing.
This is not a simple copy of the jw mapping code anymore.
Authored by: semor 2008-01-07
Parent: [r4467]
Child: [r4469]