public ComplexTextStructure clone() {
synchronized (getDataLock()) {
ComplexTextStructure clone = (ComplexTextStructure) super.clone();
clone.segmentList = Lists.newArrayList();
for (Segment seg : segmentList) {
Segment clonedSeg = new Segment(seg);
clonedSeg.alias = seg.alias;
clone.segmentList.add(clonedSeg);
}
return clone;
}