public void addPropertyBlock(PropertyBlock block) {
    assert size() + block.getSize() <= PropertyType.getPayloadSize()
        : ("Exceeded capacity of property record "
            + this
            + ". My current size is reported as "
            + size()
            + "The added block was "
            + block
            + " (note that size is "
            + block.getSize()
            + ")");

    blockRecords.add(block);
  }
 /**
  * Gets the sum of the sizes of the blocks in this record, in bytes.
  *
  * @return
  */
 public int size() {
   int result = 0;
   for (PropertyBlock block : blockRecords) {
     result += block.getSize();
   }
   return result;
 }