Fixed CopyAttachments

Fixed CopyAttachments.java with the commented code.