void () { buffer.append(rawDocument, index, tmpWrapIndex); index = tmpWrapIndex + WRAP_MARKER.length(); wrapIndex = buffer.length(); if (rawDocument.indexOf(WRAP_MARKER, index) >= 0) { throw new IllegalArgumentException(String.format("More than one wrap indicator is found at the document '%s'", rawDocument)); } }