Registry mainRegistry = topRegistry.getSubRegistry("gui").getSubRegistry("main");
Section globalFctSection = mainRegistry.getRuleset("functions").getSection("global");
try {
RulesetFunctionLoader.addFunctions(functionManager,
globalFctSection.toSwifuSection());
} catch (FunctionException e) {
Messages messages = Messages.getMessages();
messages.err("GlobalFctComp", "Some error occured: " + e);
messages.err("GlobalFctComp", "===> CivQuest will abort now!");
System.exit(-1);