}
}
@Override
public boolean addAttachment(final Path path, final boolean copy) throws IOException {
boolean result = false;
<BUG>final Future<Void> future = fileClient.sendFile(path.toFile());
final Path newPath = Paths.get(tempAttachmentPath + File.separator + path.getFileName());
</BUG>
if (future != null) {   // if null, path was not valid
try {

}
fileClient = new AttachmentTransferClient(tempAttachmentPath);
} catch (final IOException e) {
Logger.getLogger(DistributedAttachmentManager.class.getName()).log(Level.SEVERE, e.getLocalizedMessage(), e);
}
}
@Override
public boolean addAttachment(final Path path, final boolean copy) throws IOException {
boolean result = false;
final Future<Void> future = fileClient.sendFile(path);
final Path newPath = Paths.get(tempAttachmentPath + FileUtils.separator + path.getFileName());
if (future != null) {   // if null, path was not valid
try {
