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

Several issues were fixed and tested.