code: public static byte[] longToByteArrayBE( long data ) {
          return new byte[]{(byte) ((data >> 56) & 0xff), (byte) ((data >> 48) & 0xff), (byte) ((data >> 40) & 0xff),
                  (byte) ((data >> 32) & 0xff), (byte) ((data >> 24) & 0xff), (byte) ((data >> 16) & 0xff),
                  (byte) ((data >> 8) & 0xff), (byte) ((data >> 0) & 0xff),};
      }
docs: Convert an long to a byte array (big endian).
  
  @param data the long to convert.
  @return the byte array.