String paramId = XMLTools.getAttributeValueOrThrowException(domNode, "id",
"Error: A potential attribute must be specified in order to generate a clique set!");
float weight = XMLTools.getAttributeValue(domNode, "weight", 1.0f);
Parameter parameter = new Parameter(paramId, weight);
String potentialType = XMLTools.getAttributeValueOrThrowException(domNode, "potential",
"Error: A potential type must be specified!");
PotentialFunction potential = PotentialFunction.create(env, potentialType, domNode);