|| (headers.containsKey(CONTENT_TYPE_HEADER) && MimeTypeHelper
.isAtom(headers.get(CONTENT_TYPE_HEADER)))) {
source = getEntry(stream, request);
entryHeaders.putAll(headers);
} else {
throw new ParseException("First part was not a feed or entry: "
+ headers);
// data = getDataInputStream(multipart);
// dataHeaders.putAll(headers);
}
try {
while (stream.available() > 0) {
stream.skipBoundary();
headers = getHeaders(stream);
if (start != null
&& (headers.containsKey(CONTENT_ID_HEADER) && start
.equals(headers.get(CONTENT_ID_HEADER)))
&& (headers.containsKey(CONTENT_TYPE_HEADER) && MimeTypeHelper
.isAtom(headers.get(CONTENT_TYPE_HEADER)))) {
throw new ParseException(
"Should not have found a second feed or entry: "
+ headers);
} else {
data = getDataInputStream(stream);
dataHeaders.putAll(headers);