/** * All properties are copied from source to target excepted the participant * @param source * @param target */ public static void copyAndOverrideRangeProperties(Range source, Range target){ if (source != null && target != null){ target.setPositions(source.getStart(), source.getEnd()); target.setLink(source.isLink()); target.setResultingSequence(source.getResultingSequence()); } }