}
}
protected FetchGroup getFetchGroup(FetchData fetch) {
FetchGroupImpl result = new FetchGroupImpl();
if (fetch.isEnvelope()) {
result.or(FetchGroup.HEADERS);
}
if (fetch.isBody() || fetch.isBodyStructure()) {
result.or(FetchGroup.MIME_DESCRIPTOR);
}
Collection<BodyFetchElement> bodyElements = fetch.getBodyElements();
if (bodyElements != null) {
for (final Iterator<BodyFetchElement> it = bodyElements.iterator(); it.hasNext();) {