* @param byteArray2 byte array to compare
     * @param range number of elements to compare starting at zero.
     * @return true if the
     */
    private static boolean byteCompare(byte[] byteArray1, byte[] byteArray2, int range) {
        for (int i = 0; i < range; i++) {
            if (byteArray1[i] != byteArray2[i]) {
                return false;
            }
        }
        return true;
    }