Level.WARNING,
"URI Syntax Exception when moving dir "
+ ((Reference) product.getProductReferences().get(0))
.getDataStoreReference() + ": Message: "
+ e.getMessage());
throw new DataTransferException(e);
}
} else if (product.getProductStructure().equals(Product.STRUCTURE_FLAT)) {
try {
copyFilesToDir(product, directory);
} catch (URISyntaxException e) {
LOG.log(
Level.WARNING,
"URI Syntax Exception when moving files: Message: "
+ e.getMessage());
throw new DataTransferException(e);
}
} else {
throw new DataTransferException(
"Cannot transfer product on unknown ProductStructure: "
+ product.getProductStructure());
}
}