@Override
  public ByteBuffer toByteBuffer(final ScopedRowKey<K> scopedRowKey) {

    final CompositeBuilder builder = Composites.newCompositeBuilder();

    // add the organization's id
    ID_SER.toComposite(builder, scopedRowKey.getScope());

    // add the key type
    keySerializer.toComposite(builder, scopedRowKey.getKey());

    return builder.build();
  }