private static byte[] hexToByteArray(String i) {
        ByteBuffer bb = ByteBuffer.allocate(4);
        bb.order(ByteOrder.LITTLE_ENDIAN);
        bb.putInt(Integer.parseInt(i.isEmpty() ? "0" : i, 16));
        return bb.array();
    }