MODE-2285 Corrected the index and index provider beahvior of the ModeShape subsystem for Wildfly

Several issues were fixed and tested.
not really, but it seems counter-intuitive since the change adapters are running in the same module....