class PingResponseDataWriter implements EntityWriter<Integer, ByteBuf> {

    @Override
    public void writeTo(Integer entity, ByteBuf target) {
        if (entity == null || target == null) {
            return;
        }
        target.writeInt(entity);
    }

}