It looks like convertToByte as written reverses the byte order of the EUI when converting it to a byte array, and setEUI(byte[])'s code reverses it again. But if your EUI is already a byte array, you ...