class ItemMapper {

    public PrimaryKey key(ByteBuffer byteBuffer) {
        try {
            return key(objectMapper.readTree(byteBuffer.array()));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}