* does the transformation need an input object
* @return the created node
*/
public static BoostedNode createNode(ObjectFactory transformation,
boolean transformationNeedsObjectToTransform) throws Exception {
SimpleBoostedNode result = new SimpleBoostedNode();
setTransformation(result, transformation);
if (transformation instanceof HasName) {
result.getAttributes().setName(transformation);
}
if (transformationNeedsObjectToTransform) {
result.createInPoint();
}
// every transformation has an outcome
result.createOutPoint();
return result;
}