// and data
String mimetype = persistence.readFeedEntryResourceType(feedId,
Common.toEntryId(entryId), resourceId);
input = persistence.readFeedEntryResource(feedId,
Common.toEntryId(entryId), resourceId);
MediaResponseContext response = new MediaResponseContext(input,
new EntityTag(resourceId), 200);
response.setContentType(mimetype);
return response;
} catch (FileNotFoundException e) {
return ProviderHelper.notfound(request);
} catch (IOException e) {
return ProviderHelper.badrequest(request,