public class DeepCopyUtils {
private static final Logger logger = LoggerFactory.getLogger(DeepCopyUtils.class);
public static List deepCopy(List sourceList) {
ObjectOutputStream out = null;
ObjectInputStream in = null;
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
out = new ObjectOutputStream(byteOut);
out.writeObject(sourceList);
ByteArrayInputStream byteIn = new ByteArrayInputStream(byteOut.toByteArray());
in = new ObjectInputStream(byteIn);
dest = (List) in.readObject();
if (Objects.nonNull(out)){
if (Objects.nonNull(in)){