public ConfigurationRecord(ReusableBuffer rb) throws IOException { byte recVersion = rb.get(); if (recVersion == 1) { this.uuid = rb.getString(); this.version = rb.getLong(); this.configurationParameter = new Vector<KeyValuePair>(); while (rb.remaining() != 0) { configurationParameter.add( KeyValuePair.newBuilder().setKey(rb.getString()).setValue(rb.getString()).build()); } } else { throw new IOException("don't know how to handle version " + recVersion); } }