case LENGTH:
int newSize = writableEvent.size() ^ CORRUPTION_PATTERN;
writableEvent.setSize(newSize);
break;
case HEADERCRC:
long headerCrc = writableEvent.headerCrc() ^ CORRUPTION_PATTERN;
writableEvent.setHeaderCrc(headerCrc);
break;
case PAYLOAD:
if (writableEvent.payloadLength() > 0)
{