Rename attachFileReferences method and cleanup the html part of the file
reference attach service