atomElement = createFeedFromCollectionWrapper(factory, o, cls);
} else if (!isFeed && !isCollection) {
atomElement = createEntryFromObject(factory, o, cls);
}
} catch (Exception ex) {
throw new InternalServerErrorException(ex);
}
try {
writeAtomElement(atomElement, os);
} catch (IOException ex) {