}
}
private void processJavascriptFunction(Parameter conf) {
JavascriptFunction jsFunction = (JavascriptFunction) mainConfig.get(conf.getName());
StringBuilder newValue = null;
switch (conf.getMode()) {
case OVERRIDE:
mainConfig.put(conf.getName(), conf.getValue());
break;
case APPEND:
newValue = new StringBuilder(((JavascriptFunction) conf.getValue()).getCode());
newValue.append(NEWLINE).append(INDENT).append(INDENT);
newValue.append(jsFunction.getCode());
jsFunction.setCode(newValue.toString());
mainConfig.put(conf.getName(), jsFunction);
break;
case PREPEND:
newValue = new StringBuilder(jsFunction.getCode());
newValue.append(((JavascriptFunction) conf.getValue()).getCode());
jsFunction.setCode(newValue.toString());
mainConfig.put(conf.getName(), jsFunction);
break;
case APPEND_WITH_SPACE:
newValue = new StringBuilder(((JavascriptFunction) conf.getValue()).getCode());
newValue.append(" ");
newValue.append(jsFunction.getCode());
jsFunction.setCode(newValue.toString());
mainConfig.put(conf.getName(), jsFunction);
break;
case PREPEND_WITH_SPACE:
newValue = new StringBuilder(jsFunction.getCode());
newValue.append(" ");
newValue.append(((JavascriptFunction) conf.getValue()).getCode());
jsFunction.setCode(newValue.toString());
mainConfig.put(conf.getName(), jsFunction);
break;
default:
break;