String name = bindingElement.getAttribute("name");
String type = bindingElement.getAttribute("type");
if(type==null || type.equals("")) {
Function f = new StaticValueFunction();
f.init(bindingElement.getTextContent().trim());
rule.bindings.add(new Binding(name,f));
} else {
Function f = createFunction(type,bindingElement.getChildNodes());
rule.bindings.add(new Binding(name,f));
}