Two issues resolved. Add important return statement after making one LinkageUnit a clone of another. Initialize .isClone to false.