*/
public void setHarvestedExt(final int id, final String harvestUuid, final Optional<String> harvestUri) throws Exception {
_metadataRepository.update(id, new Updater<Metadata>() {
@Override
public void apply(Metadata metadata) {
MetadataHarvestInfo harvestInfo = metadata.getHarvestInfo();
harvestInfo.setUuid(harvestUuid);
harvestInfo.setHarvested(harvestUuid != null);
harvestInfo.setUri(harvestUri.orNull());
}
});
}