int last = 0;
for (Map.Entry<String, Integer> entry : marks.entrySet()) {
String key = entry.getKey();
Integer offset = entry.getValue();
NSRange range = new NSRange(last, offset - last);
NSData data = content().subdataWithRange(range);
content.appendData(data);
ERXResponse partial = context.partials.get(key);
if (partial != null) {
NSData partialData = partial.content();
content.appendData(partialData);
}
last = offset;
}
NSRange range = new NSRange(last, _contentLength() - last);
NSData data = content().subdataWithRange(range);
content.appendData(data);
setContent(content);
}
}