@Override
    public byte[] getBytes() {
        byte [] rval = new byte[bytesInBuffer];
        System.arraycopy(buffer, 0, rval, 0, bytesInBuffer);
        return rval;
    }
@see io.apiman.gateway.engine.io.IApimanBuffer#getBytes()
gateway/engine/core/src/main/java/io/apiman/gateway/engine/io/ByteBuffer.java