public void writeTo(Persistor p) {
p.putString(OPERATION_ID, operationId.toString());
p.putBoolean(COLLAPSED, collapsed);
PersistUtils.writeBounds(p.createChild(OP_NODE_BOUNDS), opNodeBounds);
for (Map.Entry<PipelineActivityPosition, Rectangle> e : activityBounds.entrySet()) {
Persistor part = p.createChild(ACTIVITY_NODE);
part.putString(POSITION, e.getKey().toString());
PersistUtils.writeBounds(part, e.getValue());
}
}