ServiceException {
validateNotNull(stream, "stream");
validateNotNull(contentType, "contentType");
List<T> entries = new ArrayList<T>();
FeedType feed = unmarshalFeed(stream);
Class<?> marshallingContentType = getMarshallingContentType(contentType);
for (Object feedChild : feed.getFeedChildren()) {
EntryType entry = asEntry(feedChild);
if (entry != null) {
entries.add(contentFromEntry(contentType,
marshallingContentType, entry));
}