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

Several issues were fixed and tested.
Merge pull request #1228 from rhauch/mode-2285

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