rci.getDefinedInModule().addRunContextItem(rci);
menuFactoryRCI = rci;
}
else{
MenuImplementationConfig config = (MenuImplementationConfig) def;
ResultException ex = new ResultException();
ex.addError("Multiple menu implementations are specified as part of your loaded modules; only one menu implementation can be used.");
ex.result.lastResult().moreMessages("Menus from " + menuImplementation.getConfigName() + " defined in module " + menuImplementation.getDefinedInModule().getModuleName());
ex.result.lastResult().moreMessages("Menus from " + config.getConfigName() + " defined in module " + config.getDefinedInModule().getModuleName());
throw(ex);
}
}
else if(def instanceof FieldEditorDefinition){
FieldEditorDefinition fed = (FieldEditorDefinition) def;