}
@Override
public HTextFlow copyTextFlow(HDocument newDocument, HTextFlow textFlow)
throws Exception {
HTextFlow copy =
JPACopier.<HTextFlow> copyBean(textFlow, "document", "content",
"targets", "history", "potEntryData");
copy.setDocument(newDocument);
// copy PotEntryData
if (textFlow.getPotEntryData() != null) {
HPotEntryData potEntryData = JPACopier.<HPotEntryData> copyBean(
textFlow.getPotEntryData(), "textFlow");
copy.setPotEntryData(potEntryData);
}
return copy;
}