}
}
private void processJavascriptSnippet(Parameter conf) {
JavascriptSnippet jsSnippet = (JavascriptSnippet) mainConfig.get(conf.getName());
String newValue = null;
switch (conf.getMode()) {
case OVERRIDE:
mainConfig.put(conf.getName(), conf.getValue());
break;
case APPEND:
newValue = ((JavascriptSnippet) conf.getValue()).getJavascript() + jsSnippet.getJavascript();
jsSnippet.setJavascript(newValue);
mainConfig.put(conf.getName(), jsSnippet);
break;
case PREPEND:
newValue = jsSnippet.getJavascript() + ((JavascriptSnippet) conf.getValue()).getJavascript();
jsSnippet.setJavascript(newValue);
mainConfig.put(conf.getName(), jsSnippet);
break;
case APPEND_WITH_SPACE:
newValue = ((JavascriptSnippet) conf.getValue()).getJavascript() + " " + jsSnippet.getJavascript();
jsSnippet.setJavascript(newValue);
mainConfig.put(conf.getName(), jsSnippet);
break;
case PREPEND_WITH_SPACE:
newValue = jsSnippet.getJavascript() + " " + ((JavascriptSnippet) conf.getValue()).getJavascript();
jsSnippet.setJavascript(newValue);
mainConfig.put(conf.getName(), jsSnippet);
break;
default:
break;