}
}
public static void saveOutputStructure(Transformation tf, DataStructure output, Persistor p) {
if (isApplicable(output)) {
DataStructureType type = output.getStructureType();
Persistor root = p.createChild(OUTPUT);
root.putString(TYPE, output.getStructureType().name());
if (type.isTextBased()) {
// Special case for TextStructures: We restore them directly from the TextDocument,
// using the document ID
root.putString(DOC_ID, tf.getTargetTextDocumentId().toString());
} else if (type == DataStructureType.WebServiceRequest || type == DataStructureType.WebServiceResponse) {
// Special case for WebServiceCalls: We restore them directly from the