@Override
public Tensor transform(Tensor tensor) {
if (!(tensor instanceof Sum))
return tensor;
if(inputPort.closed())
throw new TransformationException("Transformation destroied: create new instance.");
for (Tensor summand : tensor)
inputPort.put(summand);
inputPort.put(null);
return inputPort.result();
}