Reference reference = status.getFileRef();
if (dataStoreRef.equals(reference.getDataStoreReference()))
{
Product product = status.getParentProduct();
Metadata metadata = client.getMetadata(product);
return new TransferResource(product, metadata, status);
}
}
throw new Exception("Unable to find a current file transfer status for"
+ "data store reference: " + dataStoreRef);