if (memberValuePairs != null) {
final int memberValuePairsLength = memberValuePairs.length;
this.contents[this.contentsOffset++] = (byte) (memberValuePairsLength >> 8);
this.contents[this.contentsOffset++] = (byte) memberValuePairsLength;
loop: for (int i = 0; i < memberValuePairsLength; i++) {
MemberValuePair memberValuePair = memberValuePairs[i];
if (this.contentsOffset + 2 >= this.contents.length) {
resizeContents(2);
}
final int elementNameIndex = this.constantPool.literalIndex(memberValuePair.name);
this.contents[this.contentsOffset++] = (byte) (elementNameIndex >> 8);