gen.writeStartObject();
if (!(frag instanceof Value && ((Value) frag).isEmpty()))
if (frag instanceof BulkData)
writeBulkData((BulkData) frag);
else {
writeInlineBinary(frags.vr(), (byte[]) frag, bigEndian, true);
}
gen.writeEnd();
}
gen.writeEnd();
} else if (value instanceof BulkData) {