public void execute(FileCopyDetails fileCopyDetails) { RelativePath path = fileCopyDetails.getRelativePath(); path = path.replaceLastName(transformer.transform(path.getLastName())); fileCopyDetails.setRelativePath(path); }