modRaw.order = Integer.MAX_VALUE - (numModDiscovered++); //add to end
<BUG>modRaw.type = XmlModuleRaw.MODULE_TYPE.PLUGIN.toString();
</BUG>
modRaw.valid = false; //to be validated
ModuleSettings.setConfigSetting(IngestManager.MODULE_PROPERTIES, CUR_MODULES_DISCOVERED_SETTING, Integer.toString(numModDiscovered));
<BUG>XmlPipelineRaw pipeline = null;

for (XmlPipelineRaw rawP : this.pipelinesXML) {
</BUG>
if (rawP.type.equals(pipelineType.toString())) {

modRaw.order = Integer.MAX_VALUE - (numModDiscovered++); //add to end
modRaw.type = IngestModuleLoader.XmlModuleRaw.MODULE_TYPE.PLUGIN.toString();
modRaw.valid = false; //to be validated
ModuleSettings.setConfigSetting(IngestManager.MODULE_PROPERTIES, CUR_MODULES_DISCOVERED_SETTING, Integer.toString(numModDiscovered));
IngestModuleLoader.XmlPipelineRaw pipeline = null;
for (IngestModuleLoader.XmlPipelineRaw rawP : this.pipelinesXML) {
if (rawP.type.equals(pipelineType.toString())) {
