for (Map.Entry<String, String> entry : mediaRanges.entrySet()) {
if (entry.getKey().equalsIgnoreCase("entry")) {
addSimpleExtension(ACCEPT, "application/atom+xml;type=entry");
} else {
try {
Element accept = addSimpleExtension(ACCEPT, new MimeType(entry.getKey()).toString());
if (entry.getValue() != null) {
accept.setAttributeValue(ALTERNATE, entry.getValue());
}
} catch (javax.activation.MimeTypeParseException e) {
throw new org.apache.abdera.util.MimeTypeParseException(e);
}
}